Drupal 7 hide content type from search results

In Drupal 7 hiding content type from search results in your application is pretty simple. Hook node access alter will provide the interface to bypass the search result query.

Hide content-type For example if there is a content type called “some_type” in your application, which you don’t want to show in your search result … Continue Reading

How to create a sub theme in drupal 7

Drupal provides a simple way to inherit the base themes through the concept called subtheme. Advantages of Creating Sub theme: No need of hacking the core themes All the styles of base theme will be inherited to sub theme, less coding Lets see how to create a sub theme in drupal. For this example i … Continue Reading

Best Practices on Drupal Module development

Following are some of the important points/Best practices that should be taken in consideration while creating a new custom module in drupal. 1)   Use underscore “_mymodule_” for private function. 2)   Use “ l() ” instead of “<a>text goes here</a>”. 3)   Avoid writing all the coding inside a single module file, instead of that you can use .inc files and … Continue Reading

Most interesting features of Drupal Homebox module

If you are using Dupal for your site with user login, you should probably check this feature. Every user would like to make their work easier. For that, we should provide bird’s eye view of the updates. It could be a simple snapshot or a dashboard. Drupal Homebox module is greatly helping drupal developers to achieve … Continue Reading

A Quick overview on Drupal features modules

Drupal features module overview Drupal features module provides the UI and API for exporting  the various component used in drupal  like content type, Views etc. In this post we are going to see the key features. Components that can be exported by drupal are as follows, Content type CCK Views Taxonomy Menus User Roles Permissions … Continue Reading

How to Theme Nodes of Specific Content Type in Drupal 7

There are Basically 2 ways to Theme a page in Drupal i) By using theme functions in modules ii) By creating template files in the theme directory. For the Designer creating the template file would be much more convenient to theme than using the theme function. Sometimes there may be a need to theme node … Continue Reading