You are here

function spaces_menu in Spaces 6.3

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_menu()
  2. 5 spaces.module \spaces_menu()
  3. 6 spaces.module \spaces_menu()
  4. 6.2 spaces.module \spaces_menu()
  5. 7.3 spaces.module \spaces_menu()
  6. 7 spaces.module \spaces_menu()

Implementation of hook_menu().

File

./spaces.module, line 563

Code

function spaces_menu() {
  $items = array();
  $items['spaces-access-denied'] = array(
    'access callback' => FALSE,
    'type' => MENU_CALLBACK,
  );
  $items['spaces-frontpage'] = array(
    'page callback' => 'spaces_frontpage',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['features'] = array(
    'title' => 'Features',
    'description' => 'Configure features for this space.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'spaces_features_form',
    ),
    'access callback' => 'spaces_access_admin',
    'access arguments' => array(),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'spaces.admin.inc',
  );
  return $items;
}