function parser_ical_feedapi_feed in iCal feed parser 6
Same name and namespace in other branches
- 5 parser_ical.module \parser_ical_feedapi_feed()
Implementation of hook_feedapi_feed().
File
- ./
parser_ical.module, line 25 - Parse the incoming URL with date_api_ical
Code
function parser_ical_feedapi_feed($op) {
module_load_include('inc', 'parser_ical', 'parser_ical.feedapi');
$args = func_get_args();
switch ($op) {
case 'type':
return array(
'iCal feed',
);
case 'compatible':
$url = is_object($args[1]) ? $args[1] : FALSE;
$ical_array = _parser_ical_feedapi_parse($url, FALSE);
if ($ical_array !== FALSE) {
return 'iCal feed';
}
else {
return FALSE;
}
case 'parse':
$feed = is_object($args[1]) ? $args[1] : FALSE;
$cache = isset($args[2]) ? $args[2] : FALSE;
return _parser_ical_feedapi_parse($feed, $cache);
}
}