public function GroupRoleUIController::hook_menu in Group 7
Provides definitions for implementing hook_menu().
Overrides EntityDefaultUIController::hook_menu
File
- classes/
group_role.ui_controller.inc, line 50 - Defines the Entity API UI class for group roles.
Class
- GroupRoleUIController
- UI class for group roles.
Code
public function hook_menu() {
$items = parent::hook_menu();
$items[$this->path]['title'] = 'Group roles';
$items[$this->path]['type'] = MENU_LOCAL_TASK;
$items[$this->path]['weight'] = 0;
$items["{$this->path}/manage/%group_role/permissions"] = array(
'title' => 'Permissions',
'description' => 'Edit permissions for this role',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'group_permission_form',
NULL,
4,
),
'access callback' => 'user_access',
'access arguments' => array(
'configure group module',
),
'file' => 'admin/group.permission.inc',
'file path' => drupal_get_path('module', 'group'),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
);
return $items;
}