Skip to content

Instantly share code, notes, and snippets.

@ccamara
Last active December 25, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccamara/7005865 to your computer and use it in GitHub Desktop.
Save ccamara/7005865 to your computer and use it in GitHub Desktop.
Simple #drush command to find which modules implement a certain #hook #drupal
drush php-eval 'print_r(module_implements("hook_name"))'
@ccamara
Copy link
Author

ccamara commented Oct 16, 2013

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment