Introduction to drush for drupal development

Pocket

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 … Continue reading “Introduction to drush for drupal development”

hook_menu path not working in Drupal (6,7)

Pocket

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 … Continue reading “hook_menu path not working in Drupal (6,7)”

[Solved] How to use hook_entity_view in drupal7 ?

Pocket

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. … Continue reading “[Solved] How to use hook_entity_view in drupal7 ?”

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

Pocket

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 … Continue reading “[Solved] Add module to admin/config page in Drupal7”