Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drupal-hook-implement not quite right #2

Open
dncohen opened this issue Nov 24, 2012 · 0 comments
Open

drupal-hook-implement not quite right #2

dncohen opened this issue Nov 24, 2012 · 0 comments

Comments

@dncohen
Copy link

dncohen commented Nov 24, 2012

Run drupal-hook-implement and pass it hook_menu. It will insert several functions, none of which is hook_menu(). It seems to grab code from the comments on http://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7, rather than the example implementation.

I wonder would it be better to grab hook code from system.api.php? Or from modules/examples? If it looked for files in the local drupal tree, it might more easily support Drupal 6.x, 7.x and 8.x at the same time.

When I first used drupal-hook-implement, I was typing "menu" at the prompt. Took me a while to realize it needed "hook_menu".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant