You are here

function configuration_ui_settings_form in Configuration Management 7.2

Menu Callback Form.

1 string reference to 'configuration_ui_settings_form'
configuration_ui_menu in ui/configuration_ui.module
Implements hook_menu().

File

ui/configuration_ui.admin.inc, line 614
User interface functions for Configuration Management.

Code

function configuration_ui_settings_form($form, &$form_state) {
  $form['general_settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('General Settings'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['general_settings']['configuration_config_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Configuration directory configs are stored in.'),
    '#description' => t('Configuration directory to store config files. This defaults to inside the files directory for easy write access. Since most users ignore the files directory in their VCS, you may want to set this outside of your files directory so that configs are included in version control.'),
    '#size' => 40,
    '#maxlength' => 255,
    '#default_value' => variable_get('configuration_config_path', conf_path() . '/files/config'),
  );
  $form['general_settings']['configuration_remote_server'] = array(
    '#type' => 'checkbox',
    '#title' => t('This is a remote server'),
    '#description' => t('If this is a remote server and you do not have access to the filesystem of this server, the ability to write files to datastore should not be allowed.'),
    '#default_value' => variable_get('configuration_remote_server', -1),
  );
  $form['configuration_exclude'] = array(
    '#type' => 'fieldset',
    '#title' => t('Exclude Configurations'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#description' => t('There are some configurations, specially variables that are closely related to the current site. Like <em>cron_key</em> or <em>drupal_private_key</em>. You can use this list to exclude those configurations from being handler from Configuration Management module.'),
  );
  $form['configuration_exclude']['configuration_exclude_configurations'] = array(
    '#type' => 'textarea',
    '#title' => t('Configurations to exclude.'),
    '#description' => t('One configuration to exclude per line, no spaces allowed. Use the format: component.identifier (i.e: variable.cron_key).'),
    '#size' => 6,
    '#default_value' => variable_get('configuration_exclude_configurations', ''),
  );
  $form['#validate'][] = 'configuration_ui_validate_settings';
  return system_settings_form($form);
}