function backup_migrate_create_destination in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_create_destination()
- 8.3 includes/destinations.inc \backup_migrate_create_destination()
- 6.3 includes/destinations.inc \backup_migrate_create_destination()
- 7.3 includes/destinations.inc \backup_migrate_create_destination()
- 7.2 includes/destinations.inc \backup_migrate_create_destination()
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 includes/
destinations.inc - Implementation of hook_backup_migrate_destinations().
- backup_migrate_destination_db_mysql::destinations in includes/
destinations.db.mysql.inc - Declare any mysql databases defined in the settings.php file as a possible destination.
- nodesquirrel_get_destination in includes/
destinations.nodesquirrel.inc - Get the NS destination for the given key.
File
- includes/
destinations.inc, line 212
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);
}