function administerusersbyrole_menu_alter in Administer Users by Role 7
Same name and namespace in other branches
- 7.2 administerusersbyrole.module \administerusersbyrole_menu_alter()
Implements hook_menu_alter().
File
- ./
administerusersbyrole.module, line 41 - Provides fine-grained permissions for creating, editing, and deleting users.
Code
function administerusersbyrole_menu_alter(&$items) {
$items['user/%user/edit']['access callback'] = '_administerusersbyrole_can_edit_user';
$items['user/%user/edit']['access arguments'] = array(
1,
);
$items['user/%user/cancel']['access callback'] = '_administerusersbyrole_can_cancel_user';
$items['user/%user/cancel']['access arguments'] = array(
1,
);
$items['admin/people/create']['access arguments'] = array(
'create users',
);
}