Introduction to drush for drupal development

What is drush ? Drush is very popular and useful tool for drupal developers. It provides us shell access to the drupal commands and functions which otherwise had to be accessed using the menus provided in the drupal administration. It helps us to enable/disable modules, installs  dependency modules automatically, manage users, permissions etc. For complete … Continue reading “Introduction to drush for drupal development”

Drupal Logo

hook_menu path not working in Drupal (6,7)

Right From Drupal website : This hook enables modules to register paths in order to define how URL requests are handled. Paths may be registered for URL handling only, or they can register a link to be placed in a menu (usually the Navigation menu). A path and its associated information is commonly called a … Continue reading “hook_menu path not working in Drupal (6,7)”

[Solved] How to use hook_entity_view in drupal7 ?

I work in a team of developers and we separately develop modules in drupal. We are assigned to create entities, and there was time once I need to alter the view which was output of some other entity module. So, I am sharing here my experience how I did that. Lets say we have two … Continue reading “[Solved] How to use hook_entity_view in drupal7 ?”

Drupal Logo

[Solved] Add module to admin/config page in Drupal7

We are going to create a following custom block in admin/config page. To create a block in admin/config like those ‘People, Content Authoring, Media’ etc. We need to define two menu items as shown below [sourcecode language=”php” highlight=”3,13″]function products_menu() { $items = array(); $items[‘admin/config/products’] = array( ‘title’ => ‘Configure Products’, ‘description’ => ‘Allows administrators to … Continue reading “[Solved] Add module to admin/config page in Drupal7”