You are here

function revision_scheduler_operation_run in Revision scheduler 7

Run a specific scheduled operation.

1 string reference to 'revision_scheduler_operation_run'
revision_scheduler_menu in ./revision_scheduler.module
Implements hook_menu().

File

./revision_scheduler.module, line 448

Code

function revision_scheduler_operation_run($operation) {
  $value = implode('-', array(
    'run',
    $operation->id,
    $operation->operation,
    $operation->time_scheduled,
  ));
  if (!isset($_GET['token']) || !drupal_valid_token($_GET['token'], $value)) {
    return MENU_ACCESS_DENIED;
  }
  revision_scheduler_operation_process($operation);
  drupal_goto();
}