You are here

function mailing_list_save in Mailing List 7

1 call to mailing_list_save()
mailing_list_form_submit in ./mailing_list.admin.inc
Submit handler for the add / rename mailing list form.

File

./mailing_list.module, line 253
Minimalistic mailing list module.

Code

function mailing_list_save(&$list) {
  $update = array();
  if (is_array($list)) {
    $list = (object) $list;
  }
  if (!empty($list->mlid)) {
    $update = array(
      'mlid',
    );
  }
  return drupal_write_record('mailing_list', $list, $update);
}