You are here

public function FeedsQueryPathParser::getMappingSources in Feeds QueryPath Parser 7

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

Override parent::getMappingSources().

File

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

Class

FeedsQueryPathParser
@file

Code

public function getMappingSources() {
  $mappings = $this
    ->getOwnMappings();
  $next = 0;
  if (!empty($mappings)) {
    $keys = array_keys($mappings);
    $last_mapping = end($keys);
    $next = explode(':', $last_mapping);
    $next = $next[1] + 1;
  }
  return array(
    'querypathparser:' . $next => array(
      'name' => t('QueryPath Expression'),
      'description' => t('Allows you to configure a CSS selector expression that will populate this field.'),
    ),
  ) + parent::getMappingSources();
}