Example: Menu in Examples for Developers 7
Same name and namespace in other branches
- 6 menu_example/menu_example.module \menu_example
Demonstrates uses of the Menu APIs in Drupal.
The Page Example module also talks about the menu system, as well as how to use menu arguments to generate pages.
See also
Parent topics
File
- menu_example/
menu_example.module, line 8 - Module file for menu_example.
Functions
Name | Location | Description |
---|---|---|
menu_example_arg_optional_load |
menu_example/ |
Loads an item based on its $id. |
menu_example_arg_optional_to_arg |
menu_example/ |
Utility function to provide default argument for wildcard. |
menu_example_custom_access |
menu_example/ |
Determine whether the current user has the role specified. |
menu_example_id_load |
menu_example/ |
The special _load function to load menu_example. |
menu_example_menu |
menu_example/ |
Implements hook_menu(). |
menu_example_menu_alter |
menu_example/ |
Implements hook_menu_alter(). |
menu_example_menu_link_alter |
menu_example/ |
Implements hook_menu_link_alter(). |
menu_example_permission |
menu_example/ |
Implements hook_permission(). |
menu_example_user_page_title |
menu_example/ |
Title callback to rename the title dynamically, based on user_page_title(). |
_menu_example_basic_instructions |
menu_example/ |
Page callback for the simplest introduction menu entry. |
_menu_example_mappings |
menu_example/ |
Utility function to provide mappings from integers to some strings. |
_menu_example_menu_page |
menu_example/ |
Page callback for use with most of the menu entries. |
_menu_example_simple_title_callback |
menu_example/ |
Title callback to rewrite the '/user' menu link. |
Classes
Name | Location | Description |
---|---|---|
MenuExampleTestCase |
menu_example/ |
Functional tests for the Menu Example module. |