You are here

protected function FeedsQueryPathParser::filterMappings in Feeds QueryPath Parser 7

Filters mappings, returning the ones that belong to us.

1 call to FeedsQueryPathParser::filterMappings()
FeedsQueryPathParser::getOwnMappings in ./FeedsQueryPathParser.inc

File

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

Class

FeedsQueryPathParser
@file

Code

protected function filterMappings($mappings) {
  $our_mappings = array();
  foreach ($mappings as $mapping) {
    if (strpos($mapping['source'], 'querypathparser:') === 0) {
      $our_mappings[$mapping['source']] = $mapping['target'];
    }
  }
  return $our_mappings;
}