function autoassignrole_get_active_path_rid in Auto Assign Role 7
Same name and namespace in other branches
- 6.2 autoassignrole.module \autoassignrole_get_active_path_rid()
- 6 autoassignrole.module \autoassignrole_get_active_path_rid()
Finds any role ids attached to current page, if any.
2 calls to autoassignrole_get_active_path_rid()
- autoassignrole_form_user_register_form_alter in ./
autoassignrole.module - Implements hook_form_FORM_ID_alter() for user_register_form().
- autoassignrole_user_presave in ./
autoassignrole.module - Implements hook_user_presave().
File
- ./
autoassignrole.module, line 172 - The main autoassignrole.module file
Code
function autoassignrole_get_active_path_rid() {
$item = menu_get_item();
if ($item['page_callback'] == 'autoassignrole_register') {
return $item['page_arguments'][0];
}
return FALSE;
}