You are here

function _revisioning_scheduler_unschedule in Revisioning 8

Same name and namespace in other branches
  1. 7 revisioning_scheduler/revisioning_scheduler.module \_revisioning_scheduler_unschedule()

Check if there is a scheduled publication date for this revision.

If so delete that date.

Parameters

int $vid: the unique revision id

1 call to _revisioning_scheduler_unschedule()
revisioning_scheduler_node_update in revisioning_scheduler/revisioning_scheduler.module
Implements hook_node_update().

File

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

Code

function _revisioning_scheduler_unschedule($vid) {
  return db_delete('revisioning_scheduler')
    ->condition('revision_vid', $vid)
    ->execute();
}