function uc_roles_menu in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_roles/uc_roles.module \uc_roles_menu()
- 7.3 uc_roles/uc_roles.module \uc_roles_menu()
Implements hook_menu().
File
- uc_roles/
uc_roles.module, line 75
Code
function uc_roles_menu() {
$items = array();
$items['admin/user/user/expiration'] = array(
'title' => 'Role expiration',
'description' => 'Edit and view role expirations set by Ubercart',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_roles_expiration',
),
'access arguments' => array(
'administer users',
),
'type' => MENU_LOCAL_TASK,
'file' => 'uc_roles.admin.inc',
);
$items['admin/user/user/expiration/delete/%user/%'] = array(
'title' => 'Delete role expiration',
'description' => 'Delete a specified role expiration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_roles_deletion_form',
5,
6,
),
'access arguments' => array(
'administer users',
),
'type' => MENU_CALLBACK,
'file' => 'uc_roles.admin.inc',
);
return $items;
}