You are here

function background_process_dispatcher_http_options in Background Process 7.2

Options callback for HTTP service hosts.

1 string reference to 'background_process_dispatcher_http_options'
background_process_background_process_dispatcher_info in ./background_process.module
Implements background_process_dispatcher_info().

File

./background_process.dispatchers.inc, line 44

Code

function background_process_dispatcher_http_options($service_host) {
  global $base_url;
  $options = array(
    'base_url' => $base_url,
    'http_host' => isset($service_host['http_host']) ? $service_host['http_host'] : parse_url($base_url, PHP_URL_HOST),
  );
  return $options;
}