[documentation] [bug] Incomplete documentation on hook_help
fgm
drupal-docs at drupal.org
Sat Dec 10 20:54:59 UTC 2005
Issue status update for
http://drupal.org/node/40695
Post a follow up:
http://drupal.org/project/comments/add/40695
Project: Documentation
Version: <none>
Component: Developer Guide
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: fgm
Updated by: fgm
Status: active
The current API documentation for hook_help [1] says hook_help is called
with a $section parameter with a definite set of values, enumerated on
the page.
However hook_help is also invoked with at least two other non
documented values:
* from the admin/help page, the hook is invoked with $section ==
'admin/help'
* from the admin/help/<modulename> page, the hook is invoked twice:
* once with $section == 'admin/help#<modulename>' as documented
* once with $section == 'admin/help/<modulename>' which is not
documented
While the second invocation on admin/help/<modulename> seems redundant
and one of the calls might have to be removed or at least documented as
obsoleted, the ability for the hook to be fired from the main help page
is valuable in that it allows a module creator to insert documentation
in the main help page, so the doc should be amended to specify that
behaviour.
[1] http://drupaldocs.org/api/head/function/hook_help\" title=\"Drupal
hook_help API
fgm
More information about the documentation
mailing list