You are here

function multiple_email_delete_email in Multiple E-mail Addresses 6

Same name and namespace in other branches
  1. 5 multiple_email.module \multiple_email_delete_email()
  2. 7 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 600
multiple_email module file

Code

function multiple_email_delete_email($eid) {
  multiple_email_load(NULL, TRUE);
  $retn = db_query("DELETE FROM {multiple_email} WHERE eid = %d", $eid);
  if ($retn !== FALSE) {
    module_invoke_all('multiple_email_delete', $eid);
  }
  return $retn;
}