function multiple_email_delete_form in Multiple E-mail Addresses 2.x
Same name and namespace in other branches
- 5 multiple_email_delete_page.inc \multiple_email_delete_form()
- 6 multiple_email_delete_page.inc \multiple_email_delete_form()
- 7 multiple_email_delete_page.inc \multiple_email_delete_form()
Form displayed to confirm deletion of an e-mail address from the registry
Parameters
object $email: E-mail object from the database
Return value
string
See also
multiple_email_delete_form_validate()
multiple_email_delete_form_submit()
1 string reference to 'multiple_email_delete_form'
- multiple_email_menu in ./
multiple_email.module - Implements hook_menu().
File
- ./
multiple_email_delete_page.inc, line 20 - Contains functions the interface side of deleting an address
Code
function multiple_email_delete_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 delete the address %email from your user account?', array(
'%email' => $email->email,
)), 'user/' . $account->uid . '/edit/email-addresses', NULL, t('Delete'), t('Cancel'));
}