function role_expire_user_load in Role Expire 2.x
Same name and namespace in other branches
- 8 role_expire.module \role_expire_user_load()
- 7 role_expire.module \role_expire_user_load()
Implements hook_user_load().
File
- ./
role_expire.module, line 256 - Role Expire module.
Code
function role_expire_user_load($users) {
/*
* We don't load the information to the user object. Other modules can use
* our API to query the information.
*
* Load the starter roles into a static cache so it is easy to see what has
* changed later on.
*/
foreach ($users as $account) {
_role_static_user_roles($account
->id(), $account
->getRoles());
}
}