function background_process_get_service_groups in Background Process 7
Same name and namespace in other branches
- 8 background_process.module \background_process_get_service_groups()
- 6 background_process.module \background_process_get_service_groups()
- 7.2 background_process.module \background_process_get_service_groups()
Get service hosts defined in the system.
1 call to background_process_get_service_groups()
- background_process_settings_form in ./background_process.admin.inc 
- FAPI definition for settings page.
File
- ./background_process.module, line 919 
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;
}