You are here

function hook_date_ical_import_post_parse_alter in Date iCal 7.3

Alter the parsed data for an event imported from an iCal feed.

Parameters

array $data: An associative array of field data that represents an imported event.

array $context: An associative array of context, with the following keys and values:

  • 'calendar': The iCalcreator vcalendar parent object of this component.
  • 'source': FeedsSource object for this Feed.
  • 'fetcher_result': The FeedsFetcherResult object for this Feed.
1 invocation of hook_date_ical_import_post_parse_alter()
ParserVcalendar::parse in libraries/ParserVcalendar.inc
Parses the vcalendar object into an array of event data arrays.

File

./date_ical.api.php, line 188
Documentation for the hooks provided by Date iCal.

Code

function hook_date_ical_import_post_parse_alter(&$data, $context) {

  // Example of what might be done with this alter hook.
  if (!empty($context['calendar']->xprop['X-WR-CALNAME']['value'])) {

    // Do something with the calendar name....
  }
}