function configuration_settings_form in Configuration Management 7
Menu Callback Form.
1 string reference to 'configuration_settings_form'
- configuration_menu in ./
configuration.module - Implements hook_menu().
File
- ./
configuration.admin.inc, line 759
Code
function configuration_settings_form($form, &$form_state) {
$form['configuration_ops'] = array(
'#type' => 'fieldset',
'#title' => t('Configuration Operations'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#description' => t('Scan all configurations being tracked for differences'),
);
$form['configuration_ops']['check_for_new_configurations'] = array(
'#type' => 'submit',
'#value' => t('Check for new configurations'),
'#submit' => array(
'configuration_check_configurations_submit',
),
);
$form['general_settings'] = array(
'#type' => 'fieldset',
'#title' => t('General Settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['general_settings']['configuration_display_messages'] = array(
'#type' => 'checkbox',
'#title' => t('Display a message warning that there is changes to write into the datastore'),
'#description' => t('If checked, every time that configurations from datastore be overriden, a message will be displayed informing users to write the changes into the datastore.'),
'#default_value' => variable_get('configuration_display_messages', TRUE),
);
$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'),
'#after_build' => array(
'system_check_directory',
),
);
$form['general_settings']['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('remote_server', -1),
);
if (variable_get('remote_server', 0)) {
if (module_exists('diff')) {
$form['general_settings']['submit'] = array(
'#type' => 'submit',
'#value' => t('Download Activestore Configuration'),
'#weight' => 9,
'#submit' => array(
'configuration_download_config_submit',
),
'#states' => array(
'invisible' => array(
'input[name="remote_server"]' => array(
'checked' => FALSE,
),
),
),
);
}
}
return system_settings_form($form);
}