function backup_migrate_drush_profiles in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
- 8.3 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
- 6.3 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
- 6.2 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
- 7.2 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
Get a list of available profiles.
1 string reference to 'backup_migrate_drush_profiles'
- backup_migrate_drush_command in includes/
backup_migrate.drush.inc - Implements hook_drush_command().
File
- includes/
backup_migrate.drush.inc, line 249 - Drush commands for backup and migrate.
Code
function backup_migrate_drush_profiles() {
require_once dirname(__FILE__) . '/profiles.inc';
$rows = array(
array(
dt('ID'),
dt('Name'),
),
);
foreach (backup_migrate_get_profiles() as $profile) {
$rows[] = array(
$profile
->get_id(),
$profile
->get_name(),
);
}
drush_print_table($rows, TRUE, array(
32,
32,
));
}