1.20.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']));
}