function backup_migrate_backup_migrate_destination_types in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_backup_migrate_destination_types()
- 6.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 21 - All of the destination handling code needed for Backup and Migrate.
Code
function backup_migrate_backup_migrate_destination_types() {
return array(
'file' => array(
'type_name' => t('Server Directory'),
'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',
'save_callback' => 'backup_migrate_destination_file_save',
'load_callback' => 'backup_migrate_destination_file_load',
'list_callback' => 'backup_migrate_destination_files_list',
'delete_callback' => 'backup_migrate_destination_file_delete',
'conf_callback' => 'backup_migrate_destination_file_conf',
'ops' => array(
'scheduled backup',
'manual backup',
'restore',
'list files',
),
),
'browser' => array(
'type_name' => t('Browser Upload/Download'),
'description' => t('Save the backup files to the browser (download) or upload via a form.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.browser.inc',
'save_callback' => 'backup_migrate_destination_browser_save',
'load_callback' => 'backup_migrate_destination_browser_load',
'ops' => array(
'manual backup',
'restore',
),
),
'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',
'save_callback' => 'backup_migrate_destination_email_save',
'conf_callback' => 'backup_migrate_destination_email_conf',
'ops' => array(
'manual backup',
'scheduled backup',
),
),
'db' => array(
'type_name' => t('Database'),
'description' => t('Import the dump directly into another MySQL database.'),
'file' => drupal_get_path('module', 'backup_migrate') . '/includes/destinations.db.inc',
'save_callback' => 'backup_migrate_destination_db_save',
'conf_callback' => 'backup_migrate_destination_db_conf',
'ops' => array(
'source',
'manual backup',
'scheduled backup',
),
),
);
}