function role_expire_user_load in Role Expire 8
Same name and namespace in other branches
- 7 role_expire.module \role_expire_user_load()
- 2.x role_expire.module \role_expire_user_load()
Implements hook_user_load().
File
- ./
role_expire.module, line 253 - 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());
}
}