You are here

function drush_feed_import_base_list in Feed Import 7.3

Same name and namespace in other branches
  1. 8 feed_import_base/feed_import_base.drush.inc \drush_feed_import_base_list()

Implements drush_COMMANDFILE_COMMANDNAME()

File

feed_import_base/feed_import_base.drush.inc, line 81
Contains drupal commands for feed import

Code

function drush_feed_import_base_list() {
  $msg = '%1$-25s | %2$-25s | %3$-3s ' . PHP_EOL;
  $h = sprintf($msg, t('Feed name'), t('Machine name'), t('Cron import'));
  echo $h, str_repeat('-', strlen($h) - strlen(PHP_EOL)), PHP_EOL;
  $feeds = FeedImport::loadAllFeeds();
  foreach ($feeds as $feed) {
    printf($msg, $feed->name, $feed->machine_name, $feed->cron_import ? t('yes') : t('no'));
  }
}