function hosting_services_add in Hostmaster (Aegir) 6
Add a service to an existing server node.
2 calls to hosting_services_add()
- hosting_server_drush_context_import in modules/
hosting/ server/ hosting_server.drush.inc - hostmaster_bootstrap in ./
hostmaster.profile
File
- modules/
hosting/ server/ hosting_server.module, line 134
Code
function hosting_services_add(&$node, $name, $type, $values = array()) {
$values['available'] = isset($values['available']) ? $values['available'] : 1;
if ($service_object = hosting_services_new_object($name, $type, $node, $values)) {
$node->services[$name] = $service_object;
}
}