You are here

function schema_get_connection_options in Schema 8

Same name and namespace in other branches
  1. 7 schema.module \schema_get_connection_options()

Get an array of connection options that are supported by schema inspection.

1 call to schema_get_connection_options()
SchemaSettingsForm::buildForm in src/Form/SchemaSettingsForm.php
Form constructor.

File

./schema.module, line 83
The Schema module provides functionality built on the Schema API.

Code

function schema_get_connection_options() {
  $options =& drupal_static(__FUNCTION__);
  if (!isset($options)) {
    foreach ($GLOBALS['databases'] as $connection => $targets) {

      // Only support connections that can be inspected by schema module.
      if (!schema_get_connection_engine_class($connection)) {
        continue;
      }
      $options[$connection] = $connection;
    }
  }
  return $options;
}