function _backup_migrate_drush_destinations in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/backup_migrate.drush.inc \_backup_migrate_drush_destinations()
- 8.3 includes/backup_migrate.drush.inc \_backup_migrate_drush_destinations()
- 6.3 includes/backup_migrate.drush.inc \_backup_migrate_drush_destinations()
- 6.2 includes/backup_migrate.drush.inc \_backup_migrate_drush_destinations()
- 7.2 includes/backup_migrate.drush.inc \_backup_migrate_drush_destinations()
Get a list of available destinations with the given op.
1 call to _backup_migrate_drush_destinations()
- backup_migrate_drush_destinations in includes/
backup_migrate.drush.inc - Get a list of available destinations.
File
- includes/
backup_migrate.drush.inc, line 215 - Drush commands for backup and migrate.
Code
function _backup_migrate_drush_destinations($op = NULL) {
require_once dirname(__FILE__) . '/destinations.inc';
$rows = array(
array(
dt('ID'),
dt('Name'),
dt('Operations'),
),
);
foreach (backup_migrate_get_destinations($op) as $destination) {
$rows[] = array(
$destination
->get_id(),
$destination
->get_name(),
implode(', ', $destination
->ops()),
);
}
drush_print_table($rows, TRUE, array(
32,
32,
));
}