function role_expire_rules_event_info in Role Expire 7
Implementation of hook_rules_event_info().
File
- ./
role_expire.rules.inc, line 11 - Rules integration for the role expire module.
Code
function role_expire_rules_event_info() {
$items = array(
'role_expire_rules_event_role_expires' => array(
'label' => 'When a role expires',
'group' => 'Role Expire',
'variables' => array(
'user' => array(
'type' => 'user',
'label' => t('Expired user'),
),
'previous_role' => array(
'type' => 'text',
'label' => t('Previous role'),
),
),
),
);
return $items;
}