My experiences/views on drupal development (module/theme)

Pocket

Hello I am from Nepal and we have very few drupal developers (module/theme) here. I usually am focused in drupal module developement so had average knowledge of drupal theme development But recently I threw myself a challenge to work in drupal theming to test my skills. I decided to do … Continue reading “My experiences/views on drupal development (module/theme)”

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”