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

3 calls to sitealias_get_databases_from_record()
drush_archive_dump in commands/core/archive.drush.inc
Command callback. Generate site archive file.
drush_sitealias_get_db_spec in includes/sitealias.inc
Return the $db_spec record for the database associated with the provided alias record. which will be used to first add the database information to the alias records, invoking sql-conf to look them up if necessary.
sql_drush_sql_sync_sanitize in commands/sql/sql.drush.inc
Implements hook_sql_drush_sql_sync_sanitize.

File

includes/sitealias.inc, line 931
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;
}