function _revisioning_scheduler_unschedule_all_revisions in Revisioning 8
Same name and namespace in other branches
- 7 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 398 - 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();
}