function multiple_email_primary_form in Multiple E-mail Addresses 7
Same name and namespace in other branches
- 5 multiple_email_primary_page.inc \multiple_email_primary_form()
- 6 multiple_email_primary_page.inc \multiple_email_primary_form()
- 2.x multiple_email_primary_page.inc \multiple_email_primary_form()
Builds form for confirming moving an e-mail to primary status
Parameters
object $email: And e-mail object from the database
Return value
array
See also
multiple_email_primary_form_validate()
multiple_email_primary_form_submit()
1 string reference to 'multiple_email_primary_form'
- multiple_email_menu in ./
multiple_email.module - Implements hook_menu().
File
- ./
multiple_email_primary_page.inc, line 20 - Functions for making an e-mail address the primary address for a user.
Code
function multiple_email_primary_form($form, &$form_state, $account, $email) {
$form['email'] = array(
'#type' => 'value',
'#value' => $email,
);
$form['account'] = array(
'#type' => 'value',
'#value' => $account,
);
return confirm_form($form, t('Are you sure you wish to make the address %email your primary e-mail address?', array(
'%email' => $email->email,
)), 'user/' . $account->uid . '/edit/email-addresses', t('Your primary address cannot be edited or deleted.'), t('Make Primary'), t('Cancel'));
}