You are here

function hostingService_dns_master::context_options in Hosting 6.2

Overrides hostingService::context_options

File

dns/hosting_dns.service.inc, line 90
Provide the hosting serivce classes for DNS integration.

Class

hostingService_dns_master
Helper class to factor together master functionality

Code

function context_options($task_type, $ref_type, &$task) {
  parent::context_options($task_type, $ref_type, $task);
  if (is_array($this->slave_servers) && sizeof($this->slave_servers)) {
    $task->context_options['slave_servers'] = implode(',', array_values(array_map('hosting_context_name', array_intersect_key($this->slave_servers, hosting_get_servers('dns')))));
  }
}