You are here

function referral_rules_condition_info in User Referral 7

Implements hook_rules_condition_info().

File

./referral.rules.inc, line 109
Rules integration

Code

function referral_rules_condition_info() {
  $conditions = array();
  $conditions['referral_is_flagged'] = array(
    'label' => t('Referral is flagged'),
    'group' => t('user referral'),
    'base' => 'rules_condition_referral_is_flagged',
    'parameter' => array(
      'user' => array(
        'type' => 'user',
        'label' => t('The user you want to see if their referral record has been flagged'),
      ),
    ),
  );
  $conditions['user_referred'] = array(
    'label' => t('User was referred by another user.'),
    'group' => t('user referral'),
    'base' => 'rules_condition_user_referred',
    'parameter' => array(
      'user' => array(
        'type' => 'user',
        'label' => t('The user you want to check if they were referred by another user'),
      ),
    ),
  );
  return $conditions;
}