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 includes/authorize.inc
Form submission handler for authorize_filetransfer_form().

File

includes/authorize.inc, line 290

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.