Add a Menu Item for an Administrative Interface in Drupal 7


show more Adding a menu item for an admin interface provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development show less
please wait ...

Adding a menu item for an admin interface

Before I create the wind farms administrative interface, I need to describe the location of the interface to Drupal. The menu system, which is distinct from the actual menu module, defines the navigational menus and routes page requests to code, based on URLs. These routes based on URLs are known as paths. The menu module itself provides an administrative interface to allow menus and the routing to be managed. To add a new menu item and routing path to the menu system, I will use hook_menu.

Items added via hook_menu are aggregated by the menu system and assigned a hierarchy. This hierarchy can be initially setting code, but can also be manipulated using the menu module through the admin interface. Hook_menu defines menu items in page callbacks. This means a module can define what items are shown in the menu, the path that is associated with the menu item, ends the callbacks to be used when that path is accessed. The menu system does not access hook_menu very often, instead re...

Adding a menu item for an admin interface
Video duration: 8m 32s 2h 56m Advanced

Viewers:

Adding a menu item for an admin interface provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development

Subjects:
Developer Web
Software:
Drupal
Author:
please wait ...