You are here

function _hosting_site_form_populate in Hosting 5

populate hosting site node form element with specified arguments

1 string reference to '_hosting_site_form_populate'
hosting_site_menu in site/hosting_site.module

File

site/hosting_site.module, line 757

Code

function _hosting_site_form_populate($element, $value, $value2 = null) {
  $form[$element] = call_user_func('_hosting_site_form_' . $element, $value, $value2);
  $GLOBALS['devel_shutdown'] = FALSE;
  print drupal_to_js(array(
    'status' => 'TRUE',
    'type' => $form[$element]['#type'],
    'data' => drupal_render(form_builder('hosting-site-form', $form)),
  ));
  exit;
}