function _autoassignrole_path_access in Auto Assign Role 6
Same name and namespace in other branches
- 6.2 autoassignrole.module \_autoassignrole_path_access()
1 string reference to '_autoassignrole_path_access'
- autoassignrole_menu in ./
autoassignrole.module - Implementation of hook_menu().
File
- ./
autoassignrole.module, line 129 - The main autoassignrole.module file
Code
function _autoassignrole_path_access() {
global $user;
if (variable_get('user_register', 1) && $user->uid == 0) {
return TRUE;
}
if (arg(0) == 'admin' && arg(2) == 'menu-customize' && user_access('administer menu', $user)) {
return TRUE;
}
return FALSE;
}