function mailing_list_emails_list in Mailing List 7
Menu callback; displays all e-mails for the specified mailing list in a table. Also routes to delete operation if selected.
Hack inspired by user.module
1 string reference to 'mailing_list_emails_list'
- mailing_list_menu in ./
mailing_list.module - Implement hook_menu().
File
- ./
mailing_list.admin.inc, line 41 - Mailing list admin UI.
Code
function mailing_list_emails_list($list) {
if (!empty($_POST['mails']) && isset($_POST['operation']) && $_POST['operation'] == 'delete') {
$build['mailing_list_email_delete_multiple_confirm'] = drupal_get_form('mailing_list_email_delete_multiple_confirm_form');
}
else {
$build['mailing_list_emails_form'] = drupal_get_form('mailing_list_emails_form', $list);
}
return $build;
}