You are here

function multiple_email_confirm_email in Multiple E-mail Addresses 5

Same name and namespace in other branches
  1. 6 multiple_email.module \multiple_email_confirm_email()
  2. 7 multiple_email.module \multiple_email_confirm_email()
  3. 2.x multiple_email.module \multiple_email_confirm_email()

Marks an email address as confirmed in the email registry

Parameters

object $email: Email row object to confirm

Return value

void

2 calls to multiple_email_confirm_email()
multiple_email_confirm_form_submit in ./multiple_email_confirm_page.inc
Process multiple_email_confirm_form submission
multiple_email_user in ./multiple_email.module
Implementation of hook_user()

File

./multiple_email.module, line 451
multiple_email module file

Code

function multiple_email_confirm_email($email) {
  watchdog('Multiple Email', t("Marking address '!email' confirmed for user !uid", array(
    '!email' => $email->email,
    '!uid' => $email->uid,
  )), l(t('edit'), "user/{$uid}"));
  db_query("\n    UPDATE {multiple_email} SET\n      confirmed = 1\n    WHERE\n      eid = %d", $email->eid);
  $email->confirmed = 1;
  module_invoke_all('multiple_email_confirm', $email);
}