You are here

function multiple_email_delete_form in Multiple E-mail Addresses 6

Same name and namespace in other branches
  1. 5 multiple_email_delete_page.inc \multiple_email_delete_form()
  2. 7 multiple_email_delete_page.inc \multiple_email_delete_form()
  3. 2.x 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
Implementation of 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_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'));
}