function user_expire_get_role_rules in User Expire 7
Same name and namespace in other branches
- 8 user_expire.module \user_expire_get_role_rules()
Gets the role inactivity rules.
Return value
mixed An array of objects keyed by rid of rid and inactivity_period or FALSE.
3 calls to user_expire_get_role_rules()
- user_expire_expire_by_role in ./
user_expire.module - Expires user by roles according to rules in the database.
- user_expire_expire_by_role_warning in ./
user_expire.module - Warns users with an upcoming expiration by roles.
- user_expire_settings in ./
user_expire.admin.inc - User expire admin settings form.
File
- ./
user_expire.module, line 460 - Main module file for User expire module.
Code
function user_expire_get_role_rules() {
return db_select('user_expire_roles', 'uer')
->fields('uer', array(
'rid',
'inactivity_period',
))
->execute()
->fetchAllAssoc('rid');
}