You are here

function _background_process_http_request_result in Background Process 8

Same name and namespace in other branches
  1. 6 background_process.module \_background_process_http_request_result()
  2. 7.2 background_process.http.inc \_background_process_http_request_result()
  3. 7 background_process.module \_background_process_http_request_result()

Get request result.

3 calls to _background_process_http_request_result()
background_process_http_request in ./background_process.module
Implements to 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 1202
This module implements a framework for calling funtions in the background.

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