You are here

function hosting_client_site_form in Hostmaster (Aegir) 6

Wrapper around the regular site_node_form that passes a dummy site with a proper client

1 string reference to 'hosting_client_site_form'
hosting_client_menu in modules/hosting/client/hosting_client.module
Implementation of hook_menu().

File

modules/hosting/client/hosting_client.module, line 666

Code

function hosting_client_site_form($form, $node) {
  $site = new stdClass();
  $site->type = 'site';
  $site->client = $node->nid;
  return drupal_get_form('site_node_form', $site);
}