function backup_migrate_drush_profiles in Backup and Migrate 8.2
Same name and namespace in other branches
- 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.3 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 - Implementation of hook_drush_command().
File
- includes/
backup_migrate.drush.inc, line 176 - Drush commands for backup and migrate.
Code
function backup_migrate_drush_profiles() {
backup_migrate_include('profiles');
$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,
));
}