You are here

function cas_user_module_invoke in CAS 6.3

Same name and namespace in other branches
  1. 7 cas.module \cas_user_module_invoke()

Invokes hook_cas_user_TYPE() in every module.

We cannot use module_invoke() because the arguments need to be passed by reference.

2 calls to cas_user_module_invoke()
cas_login_check in ./cas.module
Checks to see if the user needs to be logged in.
cas_user_register in ./cas.module
Register a CAS user with some default values.

File

./cas.module, line 1128
Enables users to authenticate via a Central Authentication Service (CAS) Cas will currently work if the auto registration is turned on and will create user accounts automatically.

Code

function cas_user_module_invoke($type, &$edit, $account) {
  foreach (module_implements('cas_user_' . $type) as $module) {
    $function = $module . '_cas_user_' . $type;
    $function($edit, $account);
  }
}