function backup_migrate_nodesquirrel_get_destination in Backup and Migrate 8.3
Get the NS destination for the given key.
2 calls to backup_migrate_nodesquirrel_get_destination()
- backup_migrate_nodesquirrel_check_secret_key in includes/
destinations.nodesquirrel.inc - Check that a nodesquirel key is valid.
- backup_migrate_nodesquirrel_settings_form in includes/
destinations.nodesquirrel.inc - NodeSquirrel settings form.
File
- includes/
destinations.nodesquirrel.inc, line 25 - Functions to handle the NodeSquirrel backup destination.
Code
function backup_migrate_nodesquirrel_get_destination($secret_key) {
if ($secret_key) {
backup_migrate_include('destinations');
$destination = backup_migrate_create_destination('nodesquirrel', array(
'machine_name' => 'nodesquirrel',
));
$destination->settings['secret_key'] = $secret_key;
return $destination;
}
return NULL;
}