Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the help module is not enabled, "Get help" links should not be displayed since they link to 404s.
Or at least they should contain a warning "If you want to view this help page, please enable the help module" with a link to the module page.
Comment | File | Size | Author |
---|---|---|---|
#10 | system-admin.patch | 1.01 KB | wmostrey |
Comments
Comment #1
Frando CreditAttribution: Frando commentedThe alternative would be to move all help texts to a modulename.help file and allow viewing the help texts even when the module is disabled .. Hmm...
Comment #2
intu.cz CreditAttribution: intu.cz commentedI disabled the help module on a fresh 6.x.dev install, and where exactly do I find the "Get help" links? Could you please specify a page where I can find an example and try to reproduce the bug? Thanks.
Comment #3
ScoutBaker CreditAttribution: ScoutBaker commented[edit] @aurka, this was supposed to be a reply to your comment.
I was able to reproduce this in 6.0-beta3 (currently a default installation except for disabling the Help Module).
If you select Administer-By module, under each module, the last option is Get Help. With the Help module enabled, you get a help page describing the feature/module. If the Help module is disabled, you receive a "Page not found" error.
Comment #4
catchYes, those links are present whether the help module is enabled or not, not very pretty.
Comment #5
wmostrey CreditAttribution: wmostrey commentedI'm willing to patch this. What should we do with them:
Comment #6
catchI'd go for 1.
Comment #7
Gábor HojtsyGo with 1.
Comment #8
wmostrey CreditAttribution: wmostrey commentedComment #9
ScoutBaker CreditAttribution: ScoutBaker commentedGo for #1, that was what I was planning to try my hand at. I didn't have time to create a patch and test last night.
Comment #10
wmostrey CreditAttribution: wmostrey commentedThere, a nice clean patch.
Comment #11
catchNice and clean, works as advertised. Not nice at all to have help links pointing to 404s.
Comment #12
wmostrey CreditAttribution: wmostrey commentedThis might be a whole other discussion but I wonder if we need drupal_help_arg() in menu.inc instead of in the help module? When this patch is applied, it will only be called if the help module exists. The only other place it's called is from modules/search/search.pages.inc.
Either way, this patch needs to go in first and separately.
Comment #13
Gábor HojtsyThanks, committed.
Comment #14
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.