You are here

function regcode_mailer_regcode_preparerow in Registration codes 6

Implements hook_regcode_preparerow().

File

regcode_mailer/regcode_mailer.module, line 199

Code

function regcode_mailer_regcode_preparerow(&$row) {
  $res = db_query('SELECT mailed, recipient FROM {regcode_mailer} WHERE rid = %d', $row['rid']);
  $dbrow = db_fetch_array($res);
  unset($row['id']);
  unset($row['is_sent']);
  $row['mailed'] = $dbrow['mailed'] ? format_date(strtotime($dbrow['mailed']), 'small') : '-';
  $row['recipient'] = $dbrow['recipient'];
}