Gets the fetcher, parser, and processors.
An array containing the fetcher, parser, and processors.
function _aggregator_get_variables() {
$config = config('aggregator.settings');
$fetcher = $config
->get('fetcher');
$parser = $config
->get('parser');
if ($parser == 'aggregator') {
include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'aggregator') . '/aggregator.parser.inc';
}
$processors = $config
->get('processors');
if (in_array('aggregator', $processors)) {
include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'aggregator') . '/aggregator.processor.inc';
}
return array(
$fetcher,
$parser,
$processors,
);
}