You are here

public function FeedsQueryPathParser::getMappingSources in Feeds QueryPath Parser 6

Same name and namespace in other branches
  1. 7 FeedsQueryPathParser.inc \FeedsQueryPathParser::getMappingSources()

Override parent::getMappingSources().

Overrides FeedsParser::getMappingSources

File

./FeedsQueryPathParser.inc, line 275
Provides the class for FeedsQueryPathParser.

Class

FeedsQueryPathParser
@file

Code

public function getMappingSources() {
  $querypath_source = array(
    'querypathparser:0' => array(
      'name' => t('QueryPath Expression'),
      'description' => t('Allows you to configure an CSS expression that will populate this field.'),
    ),
  );
  $sources = parent::getMappingSources();

  // Older versions of Feeds return FALSE here.
  if (is_array($sources)) {
    return $sources + $querypath_source;
  }
  return $querypath_source;
}