You are here

function backup_migrate_backup_migrate_destinations in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_backup_migrate_destinations()
  2. 8.3 includes/destinations.inc \backup_migrate_backup_migrate_destinations()
  3. 5.2 includes/destinations.inc \backup_migrate_backup_migrate_destinations()
  4. 6.2 includes/destinations.inc \backup_migrate_backup_migrate_destinations()
  5. 7.3 includes/destinations.inc \backup_migrate_backup_migrate_destinations()
  6. 7.2 includes/destinations.inc \backup_migrate_backup_migrate_destinations()

Implementation of hook_backup_migrate_destinations().

Get the built in backup destinations and those in the db.

File

includes/destinations.inc, line 98

Code

function backup_migrate_backup_migrate_destinations() {
  $out = array();

  // Add the default, out of the box destinations for new users.
  if (variable_get('backup_migrate_allow_backup_to_file', TRUE)) {
    $out['manual'] = backup_migrate_create_destination('file_manual', array(
      'machine_name' => 'manual',
    ));
    $out['scheduled'] = backup_migrate_create_destination('file_scheduled', array(
      'machine_name' => 'scheduled',
    ));
  }

  // Add the browser destination for downloading to the desktop.
  if (variable_get('backup_migrate_allow_backup_to_download', TRUE)) {
    $out['download'] = backup_migrate_create_destination('browser_download');
  }
  $out['upload'] = backup_migrate_create_destination('browser_upload');

  // Expose the configured databases as sources.
  backup_migrate_include('filters');
  $out += backup_migrate_filters_invoke_all('destinations');
  return $out;
}