You are here

function _background_process_http_request_result in Background Process 7.2

Same name and namespace in other branches
  1. 8 background_process.module \_background_process_http_request_result()
  2. 6 background_process.module \_background_process_http_request_result()
  3. 7 background_process.module \_background_process_http_request_result()
3 calls to _background_process_http_request_result()
background_process_http_request in ./background_process.http.inc
Perform an http request.
background_process_http_request_get_response in ./background_process.http.inc
Get response for an http request
background_process_http_request_initiate in ./background_process.http.inc
Initiate the http request.

File

./background_process.http.inc, line 400
This contains the HTTP functions for Background Process.

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;
}