You are here

function referral_admin_flag in User Referral 5

Same name and namespace in other branches
  1. 6 referral.module \referral_admin_flag()
  2. 7 referral.module \referral_admin_flag()
1 string reference to 'referral_admin_flag'
referral_menu in ./referral.module

File

./referral.module, line 323

Code

function referral_admin_flag() {
  $uid = (int) arg(3);
  db_query('UPDATE {referral}
    SET flag = 1, flag_timestamp = %d
    WHERE referral_uid = %d', time(), $uid);
  $num = db_affected_rows();
  drupal_set_message(t('Flagged %num user(s).', array(
    '%num' => $num,
  )));
  drupal_goto('admin/logs/referral/unflagged');
}