2); } } /** * Implementation of ctools plugin for feeds hook_feeds_plugins(). */ function parser_ical_feeds_plugins() { $path = drupal_get_path('module', 'parser_ical'); $info = array(); $info['ParserIcalFeedsParser'] = array( 'name' => 'iCal dateapi parser', 'description' => 'Parse iCal feeds.', 'help' => 'Parse feeds in the iCal format using the dateapi.', 'handler' => array( 'parent' => 'FeedsParser', 'class' => 'ParserIcalFeedsParser', 'file' => 'ParserIcalFeedsParser.inc', 'path' => $path . '/includes', ), ); return $info; } /** * Implementation of hook_help(). */ function parser_ical_help($path, $arg) { switch ($path) { case 'admin/modules#description': return t('Provide a common iCal parser for Feeds using dateapi.'); } } function parser_ical_enable() { cache_clear_all('plugins:feeds:plugins', 'cache'); }