You are here

function backup_migrate_drush_profiles in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
  2. 8.3 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
  3. 6.3 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
  4. 6.2 includes/backup_migrate.drush.inc \backup_migrate_drush_profiles()
  5. 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,
  ));
}