function group_menu in Group 7
Implements hook_menu().
See also
GroupUiController::hook_menu()
GroupRoleUiController::hook_menu()
GroupTypeUiController::hook_menu()
GroupMembershipUiController::hook_menu()
File
- ./
group.router.inc, line 15 - Contains all router functions for the Group module.
Code
function group_menu() {
$items['user/%user/group'] = array(
'title' => 'Group',
'description' => 'Group info for a given user.',
'page callback' => 'group_user_page',
'page arguments' => array(
1,
),
'access callback' => 'user_edit_access',
'access arguments' => array(
1,
),
'file' => 'pages/group.user.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
$items['user/%user/group/list'] = array(
'title' => 'My groups',
'title callback' => 'group_user_page_title',
'title arguments' => array(
1,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
return $items;
}