function hostmaster_task_filesystem in Hostmaster (Aegir) 5.x
Configures web_server_node_form paths.
@todo pull changes in the form upstream
File
- ./
hostmaster.forms.inc, line 77
Code
function hostmaster_task_filesystem() {
drupal_set_title(st("Configure where to store your data"));
/* TODO drupal_retrieve_form() now accepts a form_state parameter. */
$form = node_form($form_state, node_load(HOSTING_OWN_WEB_SERVER));
_hostmaster_clean_node_form($form);
$own_link = _hosting_node_link(HOSTING_OWN_WEB_SERVER);
$form['script_user']['#type'] = 'value';
$form['web_group']['#type'] = 'value';
$form['title']['#type'] = 'value';
$form['ip_address']['#type'] = 'value';
$form['restart_cmd']['#type'] = 'value';
// drush path field
$form['drush_path_help'] = hostmaster_requirement_help('drush_path', array(
'#weight' => 4,
'#summary' => HOSTING_HELP_ENABLED,
'#configuration' => HOSTING_HELP_DISABLED,
));
$form['drush_path']['#weight'] = 5;
// config path field
$form['config_path_help'] = hostmaster_requirement_help('config_path', array(
'#weight' => 9,
'#summary' => HOSTING_HELP_ENABLED,
'#configuration' => HOSTING_HELP_COLLAPSED,
));
$form['config_path']['#weight'] = 10;
// backup path field
$form['backup_path_help'] = hostmaster_requirement_help('backup_path', array(
'#weight' => 14,
'#summary' => HOSTING_HELP_ENABLED,
'#configuration' => HOSTING_HELP_COLLAPSED,
));
$form['backup_path']['#weight'] = 15;
// httpd.conf description
$form['httpd_conf'] = hostmaster_requirement_help('httpd_conf', array(
'#weight' => 20,
'#summary' => HOSTING_HELP_ENABLED,
'#configuration' => HOSTING_HELP_ENABLED,
));
// remove all the things i don't want from the node form.
return hostmaster_form($form);
}