You are here

function role_expire_rules_action_info in Role Expire 6

Same name and namespace in other branches
  1. 7 role_expire.rules.inc \role_expire_rules_action_info()

Implementation of hook_rules_action_info().

File

./role_expire.rules.inc, line 12
Rules integration for the role expire module.

Code

function role_expire_rules_action_info() {
  $items['role_expire_rules_action_set_role_expire'] = array(
    'label' => t('Add expire time to role'),
    'help' => t('Add an expiration time to a role a user has. This action does not add the role, only the expiration time.'),
    'arguments' => array(
      'user' => array(
        'type' => 'user',
        'label' => t('The user which the expiration time will be added'),
      ),
    ),
    'eval input' => array(
      'timestamp',
    ),
    'module' => 'Role expire',
  );
  $items['role_expire_rules_action_remove_role_expire'] = array(
    'label' => t('Remove expire time from role'),
    'help' => t('Remove an expiration time to a role a user has. This action does not remove the role, only the expiration time.'),
    'arguments' => array(
      'user' => array(
        'type' => 'user',
        'label' => t('The user which the expiration time will be removed'),
      ),
    ),
    'module' => 'Role expire',
  );
  return $items;
}