You are here

function multiple_email_delete_email in Multiple E-mail Addresses 7

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

Deletes specified e-mail from registry - no error checking!

Parameters

integer $eid:

Return value

mixed

2 calls to multiple_email_delete_email()
multiple_email_delete_form_submit in ./multiple_email_delete_page.inc
Processes mulitple_email_delete_form_submit
multiple_email_expire_address in ./multiple_email.module
Removes the specified address from the user who added it and sends their primary e-mail account a message notifying them about the expiration.

File

./multiple_email.module, line 599
multiple_email module file

Code

function multiple_email_delete_email($eid) {
  $email = multiple_email_load($eid);
  module_invoke_all('multiple_email_delete', $email);
  $retn = db_delete('multiple_email')
    ->condition('eid', $eid)
    ->execute();
  return $retn;
}