Closed (fixed)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
Filter Example
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2013 at 14:20 UTC
Updated:
24 Mar 2013 at 21:00 UTC
During project application review I've found that somebody used hook_menu instead hook_help for displaying help text.
This user followed filter_example module:
http://drupal.org/node/1913566
I created a patch which replaces hook_menu with hook_help in filter_examples module.
| Comment | File | Size | Author |
|---|---|---|---|
| filter_example_hook_help.patch | 1.67 KB | PawelR |
Comments
Comment #1
mile23Thanks, Pawel.
In the context of Examples, we want a page with help on it. It's much easier to get to the point that way, rather than requiring that people remember that there's a help system, and then look through to see if there's anything about the module they just installed.
It's true that the help system is a better place for help, as a best practice. However, for Examples we want both. :-)
So I left the hook_help() in, put the hook_menu() back and changed the help text itself to be a little more legible. Also made it a little more clear which filters are coming from the example module.
And boom: http://drupalcode.org/project/examples.git/commitdiff/22a636654ea598cfe0...
Thanks again, Pawel. :-)