function _background_process_http_request_result in Background Process 6
Same name and namespace in other branches
- 8 background_process.module \_background_process_http_request_result()
 - 7.2 background_process.http.inc \_background_process_http_request_result()
 - 7 background_process.module \_background_process_http_request_result()
 
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 1276  
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;
}