function hosting_services_add in Hosting 6.2
Same name and namespace in other branches
- 7.4 server/hosting_server.module \hosting_services_add()
- 7.3 server/hosting_server.module \hosting_services_add()
Add a service to an existing server node.
1 call to hosting_services_add()
File
- server/
hosting_server.module, line 138
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;
}
}