You are here

function background_process_dispatcher_drush_options in Background Process 7.2

Options callback for Drush service hosts.

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

File

./background_process.dispatchers.inc, line 84

Code

function background_process_dispatcher_drush_options($service_host) {
  global $base_url;
  $options = array(
    'drush_cmd' => !empty($service_host['drush_cmd']) ? $service_host['drush_cmd'] : variable_get('background_process_drush_cmd', BACKGROUND_PROCESS_DRUSH_CMD),
    'site_alias' => !empty($service_host['site_alias']) ? $service_host['site_alias'] : '',
  );
  return $options;
}