You are here

function hostingService_http_cluster::context_options in Hostmaster (Aegir) 6

Overrides hostingService::context_options

File

modules/hosting/web_cluster/hosting_web_cluster.service.inc, line 69

Class

hostingService_http_cluster

Code

function context_options($task_type, $ref_type, &$task) {
  parent::context_options($task_type, $ref_type, $task);
  $task->context_options['cluster_web_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->web_servers, hosting_get_servers('http')))));
}