You are here

function _simplenews_scheduler_count_editions in Simplenews Scheduler 6

Returns the last edition number of the scheduled newsletter.

2 calls to _simplenews_scheduler_count_editions()
_simplenews_scheduler_new_edition in ./simplenews_scheduler.module
Create a new newsletter edition.
_simplenews_scheduler_tab_permission in ./simplenews_scheduler.module
Check whether to display the Scheduled Newsletter tab.

File

./simplenews_scheduler.module, line 385
Simplenews Scheduler module allows a schedule to be set for sending (and resending) a Simplenews item.

Code

function _simplenews_scheduler_count_editions($nid) {
  $result = db_result(db_query("SELECT COUNT(*) as c from {simplenews_scheduler_editions} where pid = %d", $nid));
  return $result;
}