function dynamic_background_context_menu in Dynamic Background 7
Same name and namespace in other branches
- 6 modules/dynamic_background_context/dynamic_background_context.module \dynamic_background_context_menu()
Implementation of hook_menu(). Hooks into the dynamic background modules menu structure and adds the "context" menu tab to the administration interface.
Return value
array menu items
File
- modules/
dynamic_background_context/ dynamic_background_context.module, line 20
Code
function dynamic_background_context_menu() {
$items = array();
$items['admin/config/user-interface/backgrounds/context'] = array(
'title' => 'Context',
'description' => t('Configure context dynamic background'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'dynamic_background_context_admin_form',
),
'access arguments' => array(
'configure context dynamic background',
),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
return $items;
}