function authorize_run_operation

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!authorize.inc/function/authorize_run_operation/7.x