To find where is implemented a specific hook

Public

To find where is implemented a specific hook. Replace 'menu' in the example by the hook name.

</> CopyGet raw version
bash
  1. drush ev "print_r(module_implements('menu'))"

Comments

Matt V.'s picture

If you have the Devel module installed, the drush fn-hook command does something similar: https://drupal.org/node/1364696#comment-5341152

From what I understand it outputs the functions in the order they are set to fire.