function backup_migrate_backup_migrate_destination_types in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_backup_migrate_destination_types()
- 5.2 includes/destinations.inc \backup_migrate_backup_migrate_destination_types()
- 7.2 includes/destinations.inc \backup_migrate_backup_migrate_destination_types()
Implementation of hook_backup_migrate_destination_types().
Get the built in Backup and Migrate destination types.
File
- includes/
destinations.inc, line 28
Code
function backup_migrate_backup_migrate_destination_types() {
$out = array();
if (!module_exists('nodesquirrel')) {
$out += array(
'nodesquirrel' => array(
'description' => t('!link is the cloud backup service for Drupal built by the maintainer of Backup and Migrate.', array(
'!link' => l(t('NodeSquirrel'), 'http://nodesquirrel.com'),
)),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.nodesquirrel.inc',
'class' => 'backup_migrate_destination_nodesquirrel',
'type_name' => t('NodeSquirrel.com'),
'can_create' => TRUE,
),
);
}
if (variable_get('backup_migrate_allow_backup_to_file', TRUE)) {
$out += array(
'file' => array(
'description' => t('Save the backup files to any directory on the server which the web-server can write to.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.file.inc',
'class' => 'backup_migrate_destination_files',
'type_name' => t('Server Directory'),
'can_create' => TRUE,
),
'file_manual' => array(
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.file.inc',
'type_name' => t('Server Directory'),
'class' => 'backup_migrate_destination_files_manual',
),
'file_scheduled' => array(
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.file.inc',
'type_name' => t('Server Directory'),
'class' => 'backup_migrate_destination_files_scheduled',
),
);
}
$out += array(
'browser_download' => array(
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.browser.inc',
'class' => 'backup_migrate_destination_browser_download',
),
'browser_upload' => array(
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.browser.inc',
'class' => 'backup_migrate_destination_browser_upload',
),
'db' => array(
'type_name' => t('Database'),
'description' => t('Import the backup directly into another database. Database destinations can also be used as a source to backup from.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.db.inc',
'class' => 'backup_migrate_destination_db',
'can_create' => FALSE,
),
'mysql' => array(
'type_name' => t('MySQL Database'),
'description' => t('Import the backup directly into another MySQL database. Database destinations can also be used as a source to backup from.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.db.mysql.inc',
'class' => 'backup_migrate_destination_db_mysql',
'can_create' => TRUE,
),
'ftp' => array(
'description' => t('Save the backup files to any a directory on an FTP server.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.ftp.inc',
'class' => 'backup_migrate_destination_ftp',
'type_name' => t('FTP Directory'),
'can_create' => TRUE,
),
's3' => array(
'description' => t('Save the backup files to a bucket on your <a href="@link">Amazon S3 account</a>.', array(
'@link' => url('http://aws.amazon.com/s3/'),
)),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.s3.inc',
'class' => 'backup_migrate_destination_s3',
'type_name' => t('Amazon S3 Bucket'),
'can_create' => TRUE,
),
'email' => array(
'type_name' => t('Email'),
'description' => t('Send the backup as an email attachment to the specified email address.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.email.inc',
'class' => 'backup_migrate_destination_email',
'can_create' => TRUE,
),
);
return $out;
}