1.14.x authorize.inc authorize_run_operation($filetransfer)
1.12.x authorize.inc authorize_run_operation($filetransfer)
1.10.x authorize.inc authorize_run_operation($filetransfer)
1.11.x authorize.inc authorize_run_operation($filetransfer)
1.13.x authorize.inc authorize_run_operation($filetransfer)
1.7.x authorize.inc authorize_run_operation($filetransfer)
1.8.x authorize.inc authorize_run_operation($filetransfer)
1.9.x authorize.inc authorize_run_operation($filetransfer)

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

Parameters

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

File

includes/authorize.inc, line 290
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'])) {
    backdrop_set_title($operation['page_title']);
  }

  require_once BACKDROP_ROOT . '/' . $operation['file'];
  call_user_func_array($operation['callback'], array_merge(array($filetransfer), $operation['arguments']));
}