function backup_migrate_create_destination

cis7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())
cle7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())
elmsmedia7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())
icor7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())
meedjum_blog7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())
mooc7 destinations.inc backup_migrate_create_destination($destination_type, $params = array())

Create a destination object of the given type with the given params.

3 calls to backup_migrate_create_destination()
backup_migrate_backup_migrate_destinations in sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
Implementation of hook_backup_migrate_destinations().
backup_migrate_destination_db_mysql::destinations in sites/all/modules/ulmus/backup_migrate/includes/destinations.db.mysql.inc
Declare any mysql databases defined in the settings.php file as a possible destination.
nodesquirrel_get_destination in sites/all/modules/ulmus/backup_migrate/includes/destinations.nodesquirrel.inc
Get the NS destination for the given key.

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.inc, line 217
All of the destination handling code needed for Backup and Migrate.

Code

function backup_migrate_create_destination($destination_type, $params = array()) {
  $params['type'] = $destination_type;
  // Create a new dummy destination to call the create method on because the base item create is not static.
  $destination = new backup_migrate_destination();
  return $destination->create($params);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.