function httprl_url_inbound_alter in HTTP Parallel Request & Threading Library 6
Same name and namespace in other branches
- 7 httprl.module \httprl_url_inbound_alter()
Implements hook_url_inbound_alter().
1 string reference to 'httprl_url_inbound_alter'
- httprl_uninstall in ./
httprl.install - Implements hook_uninstall().
File
- ./
httprl.module, line 153 - HTTP Parallel Request Library module.
Code
function httprl_url_inbound_alter(&$path, $original_path, $path_language) {
// Do nothing if this has been disabled.
if (!variable_get('httprl_url_inbound_alter', HTTPRL_URL_INBOUND_ALTER)) {
return;
}
// If requested path was for an async callback but now it is something else
// switch is back to the requested path.
$request_path = request_path();
if ($path != $request_path && strpos($request_path, 'httprl_async_function_callback') !== FALSE) {
$path = $request_path;
}
}