function mailing_list_delete in Mailing List 7
Same name and namespace in other branches
- 6 mailing_list.admin.inc \mailing_list_delete()
Deletes a mailing list and all its e-mails.
@todo D7 queries.
Parameters
$mlid: The ID of the mailing list.
1 call to mailing_list_delete()
- mailing_list_delete_confirm_submit in ./
mailing_list.admin.inc - Submit handler for the mailing list deletion form. @todo: D7 Upgrade this.
File
- ./
mailing_list.module, line 272 - Minimalistic mailing list module.
Code
function mailing_list_delete($mlid) {
$res1 = db_delete('mailing_list_emails')
->condition('mlid', $mlid)
->execute();
$res2 = db_delete('mailing_list')
->condition('mlid', $mlid)
->execute();
return (bool) $res1 & $res2;
}