function authorize_run_operation

Runs the operation specified in $_SESSION['authorize_operation'].

Parameters

$filetransfer: The FileTransfer object to use for running the operation.

1 call to authorize_run_operation()
authorize_filetransfer_form_submit in drupal/core/includes/authorize.inc
Form submission handler for authorize_filetransfer_form().

File

drupal/core/includes/authorize.inc, line 291
Helper functions and form handlers used for the authorize.php script.

Code

function authorize_run_operation($filetransfer) {
  $operation = $_SESSION['authorize_operation'];
  unset($_SESSION['authorize_operation']);
  if (!empty($operation['page_title'])) {
    drupal_set_title($operation['page_title']);
  }
  require_once DRUPAL_ROOT . '/' . $operation['file'];
  call_user_func_array($operation['callback'], array_merge(array(
    $filetransfer,
  ), $operation['arguments']));
}