You are here

function urllogin_rules_action_info in urllogin 7

Same name and namespace in other branches
  1. 8 urllogin.rules.inc \urllogin_rules_action_info()
  2. 2.x urllogin.rules.inc \urllogin_rules_action_info()

Implements hook_rules_action_info.

File

./urllogin.rules.inc, line 10
Defines rules for urllogin functionality.

Code

function urllogin_rules_action_info() {
  $actions = array();
  $actions['urllogin_user_link'] = array(
    'label' => t('Get user url login link.'),
    'parameter' => array(
      'user_id' => array(
        'type' => 'integer',
        'label' => t('User ID'),
        'description' => t('ID of the user to look up.'),
      ),
    ),
    'provides' => array(
      'urllogin' => array(
        'type' => 'text',
        'label' => t('Link to log user in.'),
      ),
    ),
    'group' => t('Urllogin'),
  );
  $actions['urllogin_user_token'] = array(
    'label' => t('Get user url login token.'),
    'parameter' => array(
      'user_id' => array(
        'type' => 'integer',
        'label' => t('User ID'),
        'description' => t('ID of the user to look up.'),
      ),
    ),
    'provides' => array(
      'urllogin' => array(
        'type' => 'text',
        'label' => t('Urllogin token for user.'),
      ),
    ),
    'group' => t('Urllogin'),
  );
  return $actions;
}