You are here

function backup_migrate_get_source in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/sources.inc \backup_migrate_get_source()
  2. 7.3 includes/sources.inc \backup_migrate_get_source()

Get the destination of the given id.

3 calls to backup_migrate_get_source()
backup_migrate_drush_backup in includes/backup_migrate.drush.inc
Backup the default database.
backup_migrate_drush_restore in includes/backup_migrate.drush.inc
Restore to the default database.
backup_migrate_profile::get_source in includes/profiles.inc
Get the source of the profile.

File

includes/sources.inc, line 28

Code

function backup_migrate_get_source($id) {
  $sources = backup_migrate_get_sources();
  return empty($sources[$id]) ? NULL : $sources[$id];
}