Revision 55670b15
Added by Assos Assos over 10 years ago
drupal7/sites/all/modules/date_ical/date_ical.api.php | ||
---|---|---|
139 | 139 |
*****************************************************************************/ |
140 | 140 |
|
141 | 141 |
/** |
142 |
* Alter the vcalendar object created from an imported iCal feed.
|
|
142 |
* Alter the vcalendar object imported from an iCal feed.
|
|
143 | 143 |
* |
144 | 144 |
* @param object $calendar |
145 | 145 |
* An instance of the iCalcreator library's vcalendar class. |
... | ... | |
153 | 153 |
} |
154 | 154 |
|
155 | 155 |
/** |
156 |
* Alter a calendar component created from an imported iCal feed.
|
|
156 |
* Alter a calendar component imported from an iCal feed.
|
|
157 | 157 |
* |
158 | 158 |
* @param object $component |
159 | 159 |
* This will usually be an iCalcreator vevent object, but Date iCal also |
... | ... | |
174 | 174 |
} |
175 | 175 |
} |
176 | 176 |
|
177 |
/** |
|
178 |
* Alter the parsed data for an event imported from an iCal feed. |
|
179 |
* |
|
180 |
* @param array $data |
|
181 |
* An associative array of field data that represents an imported event. |
|
182 |
* @param array $context |
|
183 |
* An associative array of context, with the following keys and values: |
|
184 |
* - 'calendar': The iCalcreator vcalendar parent object of this component. |
|
185 |
* - 'source': FeedsSource object for this Feed. |
|
186 |
* - 'fetcher_result': The FeedsFetcherResult object for this Feed. |
|
187 |
*/ |
|
188 |
function hook_date_ical_import_post_parse_alter(&$data, $context) { |
|
189 |
// Example of what might be done with this alter hook. |
|
190 |
if (!empty($context['calendar']->xprop['X-WR-CALNAME']['value'])) { |
|
191 |
// Do something with the calendar name.... |
|
192 |
} |
|
193 |
} |
|
194 |
|
|
177 | 195 |
/** |
178 | 196 |
* Alter the timezone string from an imported iCal Feed. |
179 | 197 |
* |
Also available in: Unified diff
Weekly update of contrib modules