Last active
December 25, 2015 16:29
-
-
Save ccamara/7005865 to your computer and use it in GitHub Desktop.
Simple #drush command to find which modules implement a certain #hook #drupal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush php-eval 'print_r(module_implements("hook_name"))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So for example, if you do
drush php-eval 'print_r(module_implements("menu"))
it will show all modules which use hook_menu
Thanks Ruben Impens for giving me this tip!