You are here

function spaces_ui_menu in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_ui.module \spaces_ui_menu()

Implementation of hook_menu().

File

./spaces_ui.module, line 15

Code

function spaces_ui_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/build/spaces/features',
      'title' => t('Features'),
      'description' => t('Page listing spaces features.'),
      'callback' => 'spaces_ui_features',
      'access' => user_access('administer spaces'),
      'type' => MENU_LOCAL_TASK,
    );
    $items[] = array(
      'path' => 'admin/build/spaces/features/list',
      'title' => t('List'),
      'description' => t('Page listing spaces features.'),
      'callback' => 'spaces_ui_features',
      'access' => user_access('administer spaces'),
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'weight' => 0,
    );
    $items[] = array(
      'path' => 'admin/build/spaces/features/add',
      'title' => t('Add'),
      'description' => t('Add a new feature.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'context_ui_form',
        'add',
      ),
      'access' => user_access('administer spaces'),
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    );
  }
  return $items;
}