function backup_migrate_backup_migrate_destination_subtypes in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.3 includes/destinations.inc \backup_migrate_backup_migrate_destination_subtypes()
- 6.3 includes/destinations.inc \backup_migrate_backup_migrate_destination_subtypes()
Implements hook_backup_migrate_destination_subtypes().
File
- includes/
destinations.inc, line 21
Code
function backup_migrate_backup_migrate_destination_subtypes() {
// Get the built-in Backup and Migrate destination types.
$out = array();
if (variable_get('backup_migrate_allow_backup_to_file', TRUE)) {
$out += array(
'file' => array(
'description' => t('Save the backup files to any directory on this 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'),
'local' => TRUE,
'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',
),
'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,
'remote' => TRUE,
),
's3' => array(
'description' => t('Save the backup files to a bucket on your <a href="@link" target="_blank">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,
'remote' => 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,
'remote' => TRUE,
),
);
return $out;
}