You are here

function feedapi_drush_config in FeedAPI 6

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

File

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

Code

function feedapi_drush_config($name) {
  $type = drush_get_option('type') ? drush_get_option('type') : 'feed';
  $settings = variable_get('feedapi_settings_' . $type, array());
  if (isset($settings['parsers'][$name])) {
    drush_print_r($settings['parsers'][$name]);
  }
  elseif (isset($settings['processors'][$name])) {
    drush_print_r($settings['processors'][$name]);
  }
}