function authorize_run_operation in Drupal 7
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 includes/
authorize.inc - Form submission handler for authorize_filetransfer_form().
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']));
}