function _hosting_site_form_pre_render in Hostmaster (Aegir) 6
pre_render form callback
Add the needed .js and .css files to render the form correctly before printing it
1 string reference to '_hosting_site_form_pre_render'
- hosting_site_form in modules/
hosting/ site/ hosting_site.form.inc - Implements hook_form().
File
- modules/
hosting/ site/ hosting_site.form.inc, line 70 - Site node form.
Code
function _hosting_site_form_pre_render($elements) {
static $settings_added = FALSE;
if (!$settings_added) {
$settings_added = TRUE;
$setting = array();
$setting['hosting']['site']['form_check_url'] = url('hosting/hosting_site_form_check');
drupal_add_js($setting, 'setting');
}
drupal_add_js(drupal_get_path('module', 'hosting_site') . '/hosting_site.form.js');
return $elements;
}