You are here

public function ParserIcalCreator::formatCategories in iCal feed parser 7.2

Format Categories

Return value

array of free tags strings.

File

includes/ParserIcalCreator.inc, line 242
Basic classes.

Class

ParserIcalCreator
@file Basic classes.

Code

public function formatCategories($property_key, $property, ParserIcalComponentInterface $item, ParserIcalResult $result, FeedsSource $source) {
  if (!empty($property['value'])) {
    if (is_array($property['value'])) {
      return $property['value'];
    }
    else {
      return array(
        $property['value'],
      );
    }
  }
}