function user_expire_rules_action_info in User Expire 7
Implements hook_rules_action_info().
File
- ./
user_expire.rules.inc, line 10 - Provides Rules integration for the User Expire module.
Code
function user_expire_rules_action_info() {
$defaults = array(
'parameter' => array(
'account' => array(
'type' => 'user',
'label' => t('User'),
'save' => TRUE,
),
'expiration' => array(
'type' => 'date',
'label' => t('Expiration date'),
'save' => TRUE,
),
),
'group' => t('User'),
);
$actions['user_expire'] = $defaults + array(
'label' => t('Set a user expiration date'),
'base' => 'user_expire_set_expiration',
);
return $actions;
}