You are here

function rules_action_unflag_referral in User Referral 7

Rules action callback

1 string reference to 'rules_action_unflag_referral'
referral_rules_action_info in ./referral.rules.inc
Implements hook_rules_action_info().

File

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

Code

function rules_action_unflag_referral($user) {
  db_update('referral')
    ->fields(array(
    'flag' => 0,
    'flag_timestamp' => 0,
  ))
    ->condition('uid', $user->uid)
    ->execute();
}