You are here

function revision_scheduler_operation_load in Revision scheduler 7

Load a single scheduled revision operation from the database.

Parameters

int $id: A scheduled operation ID.

Return value

object A scheduled revision operation record.

See also

revision_scheduler_operation_load_multiple()

1 call to revision_scheduler_operation_load()
revision_scheduler_queue_process_item in ./revision_scheduler.module
Callback for the revision_scheduler queue.

File

./revision_scheduler.module, line 469

Code

function revision_scheduler_operation_load($id) {
  $operations = revision_scheduler_operation_load_multiple(array(
    $id,
  ));
  return !empty($operations) ? reset($operations) : FALSE;
}