You are here

function newsletter_custom_send_rate_lists in Newsletter 7

Same name and namespace in other branches
  1. 7.2 newsletter.module \newsletter_custom_send_rate_lists()

Return value

An array of newsletter lists that are set to send with custom schedule.

1 call to newsletter_custom_send_rate_lists()
newsletter_node_insert in ./newsletter.module
Implements hook_node_insert().

File

./newsletter.module, line 1256
Defines menu items for newsletter administration, permissions and basic drupal hooks.

Code

function newsletter_custom_send_rate_lists() {
  $lists = db_query('SELECT nlid, send_rate FROM {newsletter_list}')
    ->fetchAll();
  foreach ($lists as $list) {
    if (is_numeric($list->send_rate)) {
      $custom_lists[] = $list;
    }
  }
  return isset($custom_lists) ? $custom_lists : array();
}