Next Tutorial
Drupal 7 Tutorial Part 15: Drupal 7 Advanced Taxonomy Concepts
How to find which modules are implementing a hook in Drupal 7
Many of you know, hooks are the way to extend drupal. Each and every module implement a hook to extend drupal functionality. For, debugging purpose or for any other reason if you want to know which are modules implementing a certain hook you can use below function.
<?php
$modules = module_implements($hook, $sort = FALSE, $reset = FALSE);
?>
$hook should be replaced by hook name like 'menu' or 'help'
$sort if repalced by TRUE modules are sorted by title name
$modules contains array of module names that are implementing $hook that we provided in the function.
©2010 AnilSagar. All rights reserved. Drupal theme by Kiwi Themes.

2 comments
Drupal platform is not too
Drupal platform is not too difficult to understand but needs to be thoroughly learnt!
Like your site and I maintain a site similar to this
Hey my friend I really like the articles that you have posted on your site. Even I maintain a site so that I can help other learn drupal 7 and its new features Hook theme and hook node load drupal 7
Post new comment