function multiple_email_confirm_email in Multiple E-mail Addresses 6
Same name and namespace in other branches
- 5 multiple_email.module \multiple_email_confirm_email()
- 7 multiple_email.module \multiple_email_confirm_email()
- 2.x multiple_email.module \multiple_email_confirm_email()
Marks an e-mail address as confirmed in the e-mail registry
Parameters
object $email E-mail row object to confirm:
bool $confirm Defaults to TRUE:
Return value
void
4 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_edit_form_submit in ./
multiple_email_edit_page.inc - Processes form submission of multiple_email_edit_form
- multiple_email_manage_submit in ./
multiple_email_manage.inc - Handle submission of multiple_email_manage_form.
- multiple_email_primary_form_submit in ./
multiple_email_primary_page.inc - Processes multiple_email_primary_form submission
File
- ./
multiple_email.module, line 553 - multiple_email module file
Code
function multiple_email_confirm_email($email, $confirm = TRUE) {
$confirm = $confirm ? 1 : 0;
watchdog('Multiple E-mail', 'Marking address %email confirmed for user !uid', array(
'%email' => $email->email,
'!uid' => $email->uid,
), l(t('edit'), "user/{$email->uid}"));
db_query("\n UPDATE {multiple_email} SET\n confirmed = %d\n WHERE\n eid = %d", $confirm, $email->eid);
$email->confirmed = $confirm;
multiple_email_load(FALSE, TRUE);
// Fires off hook_multiple_email_confirm().
module_invoke_all('multiple_email_confirm', $email);
}