You are here

function hosting_wizard_provision_paths in Hosting 5

Configures web_server_node_form paths.

@todo pull changes in the form upstream

File

./hosting.wizard.inc, line 222

Code

function hosting_wizard_provision_paths() {
  $form = drupal_retrieve_form('web_server_node_form', node_load(HOSTING_OWN_WEB_SERVER));
  _hosting_wizard_cleanse_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';
  $form['drush_path_help'] = array(
    '#type' => 'requirement_help',
    '#requirement' => 'drush_path',
    '#weight' => 4,
    '#summary' => HOSTING_HELP_ENABLED,
    '#configuration' => HOSTING_HELP_DISABLED,
  );
  $form['drush_path']['#weight'] = 5;
  $form['config_path_help'] = array(
    '#type' => 'requirement_help',
    '#requirement' => 'config_path',
    '#weight' => 9,
    '#summary' => HOSTING_HELP_ENABLED,
    '#configuration' => HOSTING_HELP_COLLAPSED,
  );
  $form['config_path']['#weight'] = 10;
  $form['backup_path_help'] = array(
    '#type' => 'requirement_help',
    '#requirement' => 'backup_path',
    '#weight' => 14,
    '#summary' => HOSTING_HELP_ENABLED,
    '#configuration' => HOSTING_HELP_COLLAPSED,
  );
  $form['backup_path']['#weight'] = 15;
  $form['httpd_conf'] = array(
    '#type' => 'requirement_help',
    '#requirement' => 'httpd_conf',
    '#summary' => HOSTING_HELP_ENABLED,
    '#configuration' => HOSTING_HELP_ENABLED,
    '#weight' => 20,
  );

  // remove all the things i don't want from the node form.
  return hosting_wizard_form('provision/paths', $form);
}