function dynamic_background_node_menu in Dynamic Background 6
Same name and namespace in other branches
- 7 modules/dynamic_background_node/dynamic_background_node.module \dynamic_background_node_menu()
Implementation of hook_menu(). Hooks into the dynamic background modules menu structure and adds the "nodes" menu tab to the administration interface.
Return value
array menu items
File
- modules/
dynamic_background_node/ dynamic_background_node.module, line 25 - This module provides the node adminitrators with the option to use different dynamic background images for each node.
Code
function dynamic_background_node_menu() {
$items = array();
$items['admin/build/backgrounds/nodes'] = array(
'title' => 'Nodes',
'description' => t('Configure dynamic background nodes'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'dynamic_background_node_admin_form',
),
'access arguments' => array(
'configure dynamic background nodes',
),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
return $items;
}