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