You are here

function simplenews_scheduler_handler_newsletters in Simplenews Scheduler 5

Same name and namespace in other branches
  1. 8 simplenews_scheduler_views.inc \simplenews_scheduler_handler_newsletters()
  2. 6.2 simplenews_scheduler_views.inc \simplenews_scheduler_handler_newsletters()
  3. 7 simplenews_scheduler_views.inc \simplenews_scheduler_handler_newsletters()
  4. 2.0.x simplenews_scheduler_views.inc \simplenews_scheduler_handler_newsletters()
1 string reference to 'simplenews_scheduler_handler_newsletters'
simplenews_scheduler_views_tables in ./simplenews_scheduler_views.inc
Implementation of hook_views_tables

File

./simplenews_scheduler_views.inc, line 41
simplenews_scheduler_views.inc Views support for simplenews

Code

function simplenews_scheduler_handler_newsletters() {
  $list = array();
  $result = db_query("SELECT * FROM {simplenews_scheduler} s LEFT JOIN {node} n ON s.snid=n.nid");
  while ($row = db_fetch_array($result)) {
    $list[$row['nid']] = "Newsletter: " . $row['title'];
  }
  return $list;
}