function hook_date_ical_import_component_alter in Date iCal 7.3
Alter a calendar component imported from an iCal feed.
Parameters
object $component: This will usually be an iCalcreator vevent object, but Date iCal also experimentally supports vtodo, vjournal, vfreebusy, and valarm.
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_component_alter()
- ParserVcalendar::parse in libraries/
ParserVcalendar.inc - Parses the vcalendar object into an array of event data arrays.
File
- ./
date_ical.api.php, line 167 - Documentation for the hooks provided by Date iCal.
Code
function hook_date_ical_import_component_alter(&$component, $context) {
// Example of what might be done with this alter hook.
if ($component->objName == 'vevent') {
// Do something for vevents...
}
elseif ($component->objName == 'valarm') {
// Do something different for valarms...
}
}