You are here

function background_process_get_service_groups in Background Process 6

Same name and namespace in other branches
  1. 8 background_process.module \background_process_get_service_groups()
  2. 7.2 background_process.module \background_process_get_service_groups()
  3. 7 background_process.module \background_process_get_service_groups()

Get service groups defined in the system.

2 calls to background_process_get_service_groups()
BackgroundProcess::determineServiceHost in ./BackgroundProcess.class.php
background_process_settings_form in ./background_process.admin.inc
FAPI definition for settings page.

File

./background_process.module, line 828

Code

function background_process_get_service_groups() {
  $service_groups = variable_get('background_process_service_groups', array());
  $service_groups += array(
    'default' => array(
      'hosts' => array(
        variable_get('background_process_default_service_host', 'default'),
      ),
    ),
  );
  foreach ($service_groups as &$service_group) {
    $service_group += array(
      'method' => 'background_process_service_group_round_robin',
    );
  }
  return $service_groups;
}