You are here

function simplenews_scheduler_get_edition_number in Simplenews Scheduler 5

1 call to simplenews_scheduler_get_edition_number()
simplenews_scheduler_new_edition in ./simplenews_scheduler.module

File

./simplenews_scheduler.module, line 214

Code

function simplenews_scheduler_get_edition_number($sched_nid) {
  $result = db_fetch_array(db_query("SELECT COUNT(*) as c from {simplenews_scheduler_editions} where snid = %d", $sched_nid));
  return $result['c'];
}