function schema_get_connection_options in Schema 7
Same name and namespace in other branches
- 8 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()
- schema_settings_form in ./
schema.admin.inc - @file Administrative page callbacks for the Schema module.
File
- ./
schema.module, line 168 - 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;
}