| Versionen | |
|---|---|
| drupal7 | final public static Database::setActiveConnection($key = 'default') |
Set the active connection to the specified key.
The previous database connection key.
includes/
<?php
final public static function setActiveConnection($key = 'default') {
if (empty(self::$databaseInfo)) {
self::parseConnectionInfo();
}
if (!empty(self::$databaseInfo[$key])) {
$old_key = self::$activeKey;
self::$activeKey = $key;
return $old_key;
}
}
?>
Kommentare
Kommentar hinzufügen