function cas_invoke_auth_filter in CAS 6.2
Same name and namespace in other branches
- 5.4 cas.module \cas_invoke_auth_filter()
- 5 cas.module \cas_invoke_auth_filter()
- 5.3 cas.module \cas_invoke_auth_filter()
Invokes hook_auth_filter() in every module.
We cannot use module_invoke_all() for this, because we want to break out as soon as one fails.
Parameters
$cas_user: The transformed $cas_name to filter
Return value
TRUE if no module implementing this hook denied access FALSE if any module returned FALSE
1 call to cas_invoke_auth_filter()
- cas_login_check in ./
cas.module - Checks to see if the user needs to be logged in
File
- ./
cas.module, line 57
Code
function cas_invoke_auth_filter($cas_name) {
foreach (module_list() as $module) {
$function = $module . '_auth_filter';
if (function_exists($function)) {
if (($return = $function('cas', $cas_name)) === FALSE) {
return FALSE;
}
}
}
return TRUE;
}