You are here

public function ParserIcalFeeds::getMappingSources in iCal feed parser 7.2

Implementation of FeedsParser::getMappingSources().

File

includes/ParserIcal.inc, line 27

Class

ParserIcalFeeds
Parent class for Feeds integration.

Code

public function getMappingSources() {

  // Quirky work around.
  // Want to have the sources as a property of the class,
  // but can't declare them with t().
  $sources = $this::$sources;
  foreach ($sources as $key => &$value) {
    if ($key == 'name' || $key == 'description') {
      $value = t($value);
    }
  }

  // parent::getMappingSources() triggers target creation too.
  return $sources + parent::getMappingSources();
}