You are here

public function DateIcalFeedsParser::getMappingSources in Date iCal 7.2

Same name and namespace in other branches
  1. 7.3 includes/DateiCalFeedsParser.inc \DateiCalFeedsParser::getMappingSources()

Implementation of FeedsParser::getMappingSources().

File

includes/DateIcalFeedsParser.inc, line 28
Basic classes.

Class

DateIcalFeedsParser
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 &$source) {
    foreach ($source as $key => &$value) {
      if ($key == 'name' || $key == 'description') {
        $value = t($value);
      }
    }
  }

  // Call parent::getMappingSources() to trigger additional target creation.
  return $sources + parent::getMappingSources();
}