You are here

function schema_settings_form in Schema 7

@file Administrative page callbacks for the Schema module.

1 string reference to 'schema_settings_form'
schema_menu in ./schema.module
Implements hook_menu().

File

./schema.admin.inc, line 8
Administrative page callbacks for the Schema module.

Code

function schema_settings_form($form, &$form_state) {
  $connection_options = schema_get_connection_options();
  $form['schema_database_connection'] = array(
    '#type' => 'select',
    '#title' => t('Database connection to use'),
    '#default_value' => variable_get('schema_database_connection', 'default'),
    '#options' => $connection_options,
    '#description' => t('If you use a secondary database other than the default Drupal database you can select it here and use schema\'s "compare" and "inspect" functions on that other database.'),
    '#access' => count($connection_options) > 1,
  );
  $form['schema_status_report'] = array(
    '#type' => 'checkbox',
    '#title' => t('Include schema comparison reports in site status report'),
    '#default_value' => variable_get('schema_status_report', 1),
    '#description' => t('When checked, schema comparison reports are run on the Administer page, and included in the site status report.'),
  );
  $form['schema_suppress_type_warnings'] = array(
    '#type' => 'checkbox',
    '#title' => t('Suppress schema warnings.'),
    '#default_value' => variable_get('schema_suppress_type_warnings', 0),
    '#description' => t('When checked, missing schema type warnings will be suppressed.'),
  );
  return system_settings_form($form);
}