You are here

function masquerade_rules_rules_condition_info in Masquerade Extras 7

Same name and namespace in other branches
  1. 7.2 masquerade_rules/masquerade_rules.rules.inc \masquerade_rules_rules_condition_info()

Implements hook_rules_condition_info().

See also

hook_rules_condition_info()

File

masquerade_rules/masquerade_rules.rules.inc, line 13
Rules support for Masquerade.

Code

function masquerade_rules_rules_condition_info() {
  $conditions = array();
  $conditions['masquerade_rules_is_masquerading'] = array(
    'group' => t('Masquerade'),
    'label' => t('Specific user is masquerading'),
    'parameter' => array(
      'user' => array(
        'label' => t('User'),
        'type' => 'user',
      ),
    ),
  );
  $conditions['masquerade_rules_is_being_masqueraded'] = array(
    'group' => t('Masquerade'),
    'label' => t('Specific user is being masqueraded'),
    'parameter' => array(
      'user' => array(
        'label' => t('Account'),
        'type' => 'user',
      ),
    ),
  );
  $conditions['masquerade_rules_is_current_user_masquerading'] = array(
    'group' => t('Masquerade'),
    'label' => t('Logged user is masquerading'),
  );
  return $conditions;
}