function webform_email_delete in Webform 7.4
Same name and namespace in other branches
- 6.3 includes/webform.emails.inc \webform_email_delete()
- 7.3 includes/webform.emails.inc \webform_email_delete()
Delete an e-mail setting.
2 calls to webform_email_delete()
- webform_email_delete_form_submit in includes/
webform.emails.inc - Submit handler for webform_email_delete_form().
- webform_node_update in ./
webform.module - Implements hook_node_update().
File
- includes/
webform.emails.inc, line 755 - Provides interface and database handling for e-mail settings of a webform.
Code
function webform_email_delete($node, $email) {
db_delete('webform_emails')
->condition('nid', $node->nid)
->condition('eid', $email['eid'])
->execute();
}