function _background_process_http_request_result in Background Process 7
Same name and namespace in other branches
- 8 background_process.module \_background_process_http_request_result()
- 6 background_process.module \_background_process_http_request_result()
- 7.2 background_process.http.inc \_background_process_http_request_result()
Get request result.
Parameters
object $result: The result object in question.
Return value
object The same object.
3 calls to _background_process_http_request_result()
- background_process_http_request in ./
background_process.module - Perform an http request.
- background_process_http_request_get_response in ./
background_process.module - Get response for an http request.
- background_process_http_request_initiate in ./
background_process.module - Initiate the http request.
File
- ./
background_process.module, line 1403
Code
function _background_process_http_request_result($result) {
if (isset($result->code)) {
if (empty($result->end)) {
$result->end = microtime(TRUE);
}
if (!empty($result->options['callback']) && is_callable($result->options['callback'])) {
call_user_func($result->options['callback'], $result);
}
}
return $result;
}