You are here

function backup_migrate_drush_schedules in Backup and Migrate 7.3

Get a list of available destinations.

1 string reference to 'backup_migrate_drush_schedules'
backup_migrate_drush_command in includes/backup_migrate.drush.inc
Implements hook_drush_command().

File

includes/backup_migrate.drush.inc, line 152
Drush commands for backup and migrate.

Code

function backup_migrate_drush_schedules() {
  require_once dirname(__FILE__) . '/schedules.inc';
  $rows = array(
    array(
      dt('ID'),
      dt('Name'),
    ),
  );
  foreach (backup_migrate_get_schedules() as $schedule) {
    $rows[] = array(
      $schedule
        ->get_id(),
      $schedule
        ->get_name(),
    );
  }
  drush_print_table($rows, TRUE, array(
    32,
    32,
  ));
}