You are here

function referral_rules_event_info in User Referral 7

Implements hook_rules_event_info().

File

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

Code

function referral_rules_event_info() {
  $defaults = array(
    'group' => t('user referral'),
    'module' => 'referral',
    'access callback' => 'user_referral_rules_access',
  );
  return array(
    'referral_recorded' => $defaults + array(
      'label' => t('After a new referral is recorded'),
      'variables' => array(
        'referring_user' => array(
          'type' => 'user',
          'label' => t('The user who owned the referral link'),
        ),
        'new_user' => array(
          'type' => 'user',
          'label' => t('The new user who visted the site through the referral link'),
        ),
      ),
    ),
  );
}