You are here

function context_ui_menu in Context 7.3

Same name and namespace in other branches
  1. 5 context_ui/context_ui.module \context_ui_menu()
  2. 6.3 context_ui/context_ui.module \context_ui_menu()
  3. 6 context_ui/context_ui.module \context_ui_menu()
  4. 6.2 context_ui/context_ui.module \context_ui_menu()

Implementation of hook_menu().

File

context_ui/context_ui.module, line 93

Code

function context_ui_menu() {
  $items = array();
  $items['admin/structure/context/settings'] = array(
    'title' => 'Settings',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer contexts',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'context_ui_settings',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['context-ui/activate'] = array(
    'title' => 'Activate Context UI',
    'access arguments' => array(
      'administer contexts',
    ),
    'page callback' => 'context_ui_activate',
    'type' => MENU_CALLBACK,
  );
  $items['context-ui/deactivate'] = array(
    'title' => 'Deactivate Context UI',
    'access arguments' => array(
      'administer contexts',
    ),
    'page callback' => 'context_ui_deactivate',
    'type' => MENU_CALLBACK,
  );
  return $items;
}