You are here

function dba_admin_settings in Database Administration 7

Module configuration.

1 string reference to 'dba_admin_settings'
dba_menu in ./dba.module
Implements hook_menu().

File

./dba.admin.inc, line 17

Code

function dba_admin_settings() {
  $form = array();
  $keys = dba_list_database_keys();
  $form['active'] = array(
    '#type' => 'fieldset',
    '#title' => t('Administer database'),
  );
  $form['active']['dba_active_database'] = array(
    '#type' => 'select',
    '#options' => $keys,
    '#default_value' => variable_get('dba_active_database', 'default'),
    '#description' => t('Select which database you would like to administer.  You can administer any of the databases in the $databases array typically configured in the settings.php Drupal configuration file.'),
  );
  return system_settings_form($form);
}