function hosting_services_add

7.x-3.x hosting_server.module hosting_services_add(&$node, $name, $type, $values = array())

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
@todo Please document this function.

File

server/hosting_server.module, line 222
Hook implementations for the Hosting server module.

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;
  }
}