You are here

public function DateIcalIcalcreatorParser::formatCategories in Date iCal 7.2

Format Categories

Return value

array of free tags strings.

File

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

Class

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

Code

public function formatCategories($property_key, $property, DateIcalIcalcreatorComponent $item, DateIcalParserResult $result, FeedsSource $source) {
  $context = get_defined_vars();

  // Allow modules to alter the categories before they're mapped to the target.
  drupal_alter('date_ical_feeds_object', $property['value'], $context);
  if (!empty($property['value'])) {
    return is_array($property['value']) ? $property['value'] : array(
      $property['value'],
    );
  }
}