function mailing_list_delete in Mailing List 6
Same name and namespace in other branches
- 7 mailing_list.module \mailing_list_delete()
Deletes a mailing list and all its e-mails.
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.
File
- ./
mailing_list.admin.inc, line 297 - Mailing list admin UI.
Code
function mailing_list_delete($mlid) {
db_query('DELETE FROM {mailing_list_emails} WHERE mlid = %d', $mlid);
db_query('DELETE FROM {mailing_list} WHERE mlid = %d', $mlid);
}