function sitealias_get_databases_from_record

8.0.x sitealias_get_databases_from_record(&$alias_record)
6.x sitealias_get_databases_from_record(&$alias_record)
7.x sitealias_get_databases_from_record(&$alias_record)
3.x sitealias_get_databases_from_record(&$alias_record)
4.x sitealias_get_databases_from_record(&$alias_record)
5.x sitealias_get_databases_from_record(&$alias_record)
master 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.


$alias_record: A record returned from drush_sitealias_get_record

5 calls to sitealias_get_databases_from_record()
drush_archive_dump in commands/core/
Command callback. Generate site archive file.
drush_sitealias_get_db_spec in includes/
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.
drush_sql_dump_file in commands/sql/
Determine where to store an sql dump file. This function is called by sql-sync.
drush_sql_sync_init in commands/sql/
Sql sync init function. Bootstrap either the source or the destination site. At least one of the sites must be local for this to work; if both sites are remote, then it clearly will not be possible to bootstrap to either of them. If both are local,…
sql_drush_sql_sync_sanitize in commands/sql/
Sql sync sanitization function. This hook function will sanitize usernames, passwords, and sessions when the --sanitize option is used. It is also an example of how to write a database sanitizer for sql sync.


includes/, line 820
The site alias API.


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;