function commons_core_menu in Drupal Commons 6.2
Implementation of hook_menu()
File
- modules/
features/ commons_core/ commons_core.module, line 15
Code
function commons_core_menu() {
return array(
'myprofile' => array(
'title' => 'My profile',
'description' => 'View your user profile',
'page callback' => 'commons_core_profile_redirect',
'access callback' => 'user_is_logged_in',
'type' => MENU_CALLBACK,
),
'community' => array(
'title' => 'Community',
'description' => 'View the groups in the community',
'page callback' => 'drupal_goto',
'page arguments' => array(
'groups',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
),
'admin/settings/commons' => array(
'title' => 'Commons',
'description' => 'Configure settings for the Commons environment',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commons_core_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'commons_core.admin.inc',
'type' => MENU_NORMAL_ITEM,
),
);
}