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 […]

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 […]

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 […]

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 […]

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 […]

How to Remove N/A Option in Radio Button Field Drupal 7

One of the interesting Features of Drupal 7 is the Field API. Prior to Drupal 6, to make a custom field the Core Profile Module and Content Profile Modules are used. Now in Drupal 7 we can make any custom field to appear in User Registration Form. When Adding Custom Fields Such as Gender usually […]

Fixed / Resolved Blank Screen Issue while Restoring Backup File in Drupal 7

Backup and Migrate is One of the important modules that will help in moving the Data Base from Development Site to Live Site. While Recently working with this module I Faced an Issue. I Have Successfully taken the Backup from Development site using the Advanced Backup options and When I tried to Restore the Backup […]

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 […]