You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
The text was updated successfully, but these errors were encountered:
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".
The text was updated successfully, but these errors were encountered: