function schema_settings in Schema 6
1 string reference to 'schema_settings'
- schema_menu in ./
schema.module - Implementation of hook_menu(). Define menu items and page callbacks. admin/build/schema calls local task(default): schema_report() admin/build/schema/report calls local task: schema_report() admin/build/schema/describe calls local task:…
File
- ./
schema.module, line 881 - The Schema module provides functionality built on the Schema API.
Code
function schema_settings() {
global $db_url;
if (is_array($db_url) && count($db_url) > 1) {
$form['schema_database_connection'] = array(
'#type' => 'select',
'#title' => t('Database connection to use'),
'#default_value' => variable_get('schema_database_connection', 'default'),
'#options' => array_combine(array_keys($db_url), array_keys($db_url)),
'#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.'),
);
}
$form['schema_status_report'] = array(
'#type' => 'checkbox',
'#title' => t('Include schema comparison reports in site status report'),
'#default_value' => variable_get('schema_status_report', TRUE),
'#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', FALSE),
'#description' => t('When checked, missing schema type warnings will be suppressed.'),
);
return system_settings_form($form);
}