function sitealias_get_databases_from_record

8.0.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
6.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
7.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
3.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
4.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
5.x sitealias.inc sitealias_get_databases_from_record(&$alias_record)
master sitealias.inc sitealias_get_databases_from_record(&$alias_record)

Return the databases record from the alias record

@returns A databases record (always in D7 format) or NULL if the databases record could not be found.

Parameters

$alias_record: A record returned from drush_sitealias_get_record

2 calls to sitealias_get_databases_from_record()

File

includes/sitealias.inc, line 563
The site alias API.

Code

function sitealias_get_databases_from_record(&$alias_record) {
  $altered_record = drush_sitealias_add_db_settings($alias_record);

  return array_key_exists('databases', $alias_record) ? $alias_record['databases'] : NULL;
}