You are here

function multiple_email_make_primary in Multiple E-mail Addresses 5

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

Changes specified user's primary email - no error checking!

Parameters

object $account:

object $email:

1 call to multiple_email_make_primary()
multiple_email_primary_form_submit in ./multiple_email_primary_page.inc
Processes multiple_email_primary_form submission

File

./multiple_email.module, line 501
multiple_email module file

Code

function multiple_email_make_primary($account, $email) {
  user_save($account, array(
    'mail' => $email->email,
  ));
}