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

ekes’s picture

Status: Active » Fixed

It 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.