You are here

function _revisioning_scheduler_unschedule_all_revisions in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning_scheduler/revisioning_scheduler.module \_revisioning_scheduler_unschedule_all_revisions()

Delete all scheduled publication dates for this node, if any.

Parameters

int $nid: the unique node id

4 calls to _revisioning_scheduler_unschedule_all_revisions()
revisioning_scheduler_cron in revisioning_scheduler/revisioning_scheduler.module
Implements hook_cron().
revisioning_scheduler_node_delete in revisioning_scheduler/revisioning_scheduler.module
Implements hook_node_delete().
revisioning_scheduler_node_presave in revisioning_scheduler/revisioning_scheduler.module
Implements hook_node_presave().
_revisioning_scheduler_schedule_publication in revisioning_scheduler/revisioning_scheduler.module
Schedule the supplied node for publication at the supplied date & time.

File

revisioning_scheduler/revisioning_scheduler.module, line 404
Allows revisions to be published at specified dates and times.

Code

function _revisioning_scheduler_unschedule_all_revisions($nid) {
  return db_delete('revisioning_scheduler')
    ->condition('revision_nid', $nid)
    ->execute();
}