You are here

public function DateIcalIcalcreatorParser::formatParamText in Date iCal 7.2

Format Text Parameter

Return value

string.

File

includes/DateIcalIcalcreatorParser.inc, line 188
Classes implementing Date iCal's iCalcreator-based parser functionality.

Class

DateIcalIcalcreatorParser
@file Classes implementing Date iCal's iCalcreator-based parser functionality.

Code

public function formatParamText($property_key, $property, DateIcalIcalcreatorComponent $item, DateIcalParserResult $result, FeedsSource $source) {
  $context = get_defined_vars();
  $position = strpos($property_key, ':');
  $key = substr($property_key, 0, $position);
  $attribute = strtoupper(substr($property_key, ++$position));
  $text = $property['params'][$attribute];

  // Allow modules to alter the param text before it's mapped to the target.
  drupal_alter('date_ical_feeds_object', $text, $context);
  return $text;
}