You are here

function dynamic_background_context_menu in Dynamic Background 6

Same name and namespace in other branches
  1. 7 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 18

Code

function dynamic_background_context_menu() {
  $items = array();
  $items['admin/build/backgrounds/context'] = array(
    'title' => 'Context',
    'description' => t('Configure dynamic background context'),
    '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;
}