Why is a menu item from hook_menu not accessible?
- Is your module enabled?
- Whenever you make a change to your module's hook_menu implementation, you need to rebuild the router table by visiting
admin/build/modules
. The Devel module provides a block that has a menu rebuild shortcut.
- Does you hook_menu implementation return the menu item array?
- Is your hook_menu properly named as modulename_menu?
- Carefully check whether the array keys you use are correct. A common mistake is the use of
'page_callback'
instead of the correct 'page callback'
.
- Check what access callback and access arguments are used.
- Make sure that your hook_menu implementation is in the .module file, not an include file.