function spaces_menu in Spaces 6
Same name and namespace in other branches
- 5.2 spaces.module \spaces_menu()
- 5 spaces.module \spaces_menu()
- 6.3 spaces.module \spaces_menu()
- 6.2 spaces.module \spaces_menu()
- 7.3 spaces.module \spaces_menu()
- 7 spaces.module \spaces_menu()
Implementation of hook_menu().
6 string references to 'spaces_menu'
- spaces_features_menu in ./
spaces.module - Returns a links array in the theme_links() format of the current space's menu items for features accessible to the current user. Each item has a keyed array of children items if applicable.
- spaces_menu_rebuild in ./
spaces.module - Rebuilds the spaces menu stored in the menu_links tables via the menu API.
- spaces_og.module in spaces_og/
spaces_og.module - spaces_site.module in spaces_site/
spaces_site.module - spaces_taxonomy.module in spaces_taxonomy/
spaces_taxonomy.module
File
- ./
spaces.module, line 63
Code
function spaces_menu() {
$items = array();
$items['spaces-access-denied'] = array(
'title' => t('Access denied'),
'description' => t('Page callback for early-stack spaces router access denied.'),
'page callback' => 'spaces_access_denied',
'page arguments' => array(),
'access callback' => FALSE,
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces'] = array(
'title' => t('Spaces presets'),
'description' => t('Create and configure spaces for your site.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_default_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'file' => 'spaces_admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/build/spaces/presets'] = array(
'title' => t('Presets'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_default_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/build/spaces/presets/add'] = array(
'title' => t('Add'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_form',
'add',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces/presets/edit'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_form',
'edit',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces/presets/export'] = array(
'title' => t('Export preset'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_export',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces/presets/delete'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'spaces_preset_delete_form',
5,
6,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces/presets/disable'] = array(
'page callback' => '_spaces_preset_disable_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
$items['admin/build/spaces/presets/enable'] = array(
'page callback' => '_spaces_preset_enable_page',
'access callback' => 'user_access',
'access arguments' => array(
'administer spaces',
),
'type' => MENU_CALLBACK,
);
return $items;
}