You are here

function _revisioning_scheduler_unschedule in Revisioning 7

Same name and namespace in other branches
  1. 8 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

2 calls to _revisioning_scheduler_unschedule()
revisioning_scheduler_node_update in revisioning_scheduler/revisioning_scheduler.module
Implements hook_node_update().
revisioning_scheduler_revisionapi in revisioning_scheduler/revisioning_scheduler.module
Implements hook_revisionapi().

File

revisioning_scheduler/revisioning_scheduler.module, line 418
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();
}