Closed (fixed)
Project:
iCal feed parser
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2009 at 14:54 UTC
Updated:
9 Oct 2009 at 11:50 UTC
I'm using parser_ical version 5.x-1.0 along with feedapi and feedapi_mapper to import an ical calendar. I noticed this error occurring repeatedly for any node visit, even the ones that weren't using parser_ical.
Missing argument 2 for parser_ical_help() in /sites/all/modules/parser_ical/parser_ical.module on line 14.
looking at the code I saw this
function parser_ical_help($path, $arg) {
switch ($path) {
case 'admin/modules#description':
return t('Provide a common iCal parser for FeedAPI-compatible modules.');
case 'feedapi/full_name':
return t('iCal Parser');
}
}which I changed to this
function parser_ical_help($path) {
switch ($path) {
case 'admin/modules#description':
return t('Provide a common iCal parser for FeedAPI-compatible modules.');
case 'feedapi/full_name':
return t('iCal Parser');
}
}This stopped the error from occurring in my logs but I wanted to know if it really needed to be there?
Thanks for the help
Comments
Comment #1
ekes commentedIt was an incorrect backport of hook_help() http://api.drupal.org/api/function/hook_help/5 I'm having trouble finding when it was wrong, but is certainly correct now.