You are here

function hosting_client_site_form in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 client/hosting_client.module \hosting_client_site_form()
  2. 7.4 client/hosting_client.module \hosting_client_site_form()

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 client/hosting_client.module
Implements hook_menu().

File

client/hosting_client.module, line 944

Code

function hosting_client_site_form($form, $node) {

  // Must explicitly load node.pages.inc in order to load the node_form.
  module_load_include('module', 'node', 'pages.inc');
  $site = new stdClass();
  $site->type = 'site';
  $site->client = $node->nid;
  return drupal_get_form('site_node_form', $site);
}