You are here

function feedapi_drush_parse in FeedAPI 6

Invokes the parser and displays the output

1 string reference to 'feedapi_drush_parse'
feedapi_drush_command in ./feedapi.drush.inc
Implementation of hook_drush_command().

File

./feedapi.drush.inc, line 96
Drush commands for FeedAPI.

Code

function feedapi_drush_parse($url, $parser) {
  $type = drush_get_option('type') ? drush_get_option('type') : 'feed';
  $settings = feedapi_get_settings($type);
  $feed = new stdClass();
  $feed->url = $url;
  drush_print_r(_feedapi_call_parsers($feed, array(
    $parser,
  ), $settings));
}