function _aggregator_get_variables

Gets the fetcher, parser, and processors.

Return value

An array containing the fetcher, parser, and processors.

3 calls to _aggregator_get_variables()
aggregator_refresh in drupal/core/modules/aggregator/aggregator.module
Checks a news feed for new items.
aggregator_remove in drupal/core/modules/aggregator/aggregator.module
Removes all items from a feed.
aggregator_sanitize_configuration in drupal/core/modules/aggregator/aggregator.module
Checks and sanitizes the aggregator configuration.

File

drupal/core/modules/aggregator/aggregator.module, line 598
Used to aggregate syndicated content (RSS, RDF, and Atom).

Code

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,
  );
}