I am completely stuck, thanks for any help.
using the drupal CVS head from about 2/25 (4.7 of course)

with a simple module named "iquote" , I get this error message:
warning: Missing argument 1 for iquote_help(). and the page never finishes, instead I get "array" - so somehow a reference is confused with an array or vice versa, or maybe its all voodoo.

whats happening is the hook_help function is being called twice. The first time with a path in $section, and the second time with an empty $section. Other modules dont have this problem, just mine.

my code looks like this:

function iquote_help($section) {
		print " START of help hook... section = $section <br>" ;
  switch ($section) {
    case 'admin/help#iquote':
      $output = t('The iquote module admin help page. ') ;
      return $output;

    case 'admin/modules#description':
      return t('Enables the creation of ....');

    case 'node/add#iquote':	
      return t('node add help text.');

   default:	
      return t("default case statement in help");

  }
}

Comments

dpw’s picture

I was able to fix it by changing my theme name to something other than the new module I was creating. That is, having a theme named 'butterfly' and a new node type called 'butterfly' (from butterfly.module) is probably not a good idea. Both probably share a 'butterfly_help()'.