Problem/Motivation
I am expanding on advanced help with the Helpful.module. I want to use the *.help.ini files to add extra parameters to allow advanced help topics to be used in additional ways, but I am unable to get that information because the only hook inside _advanced_help_parse_ini() happens way at the bottom, and the help.ini data is not included.
Proposed resolution
This patch adds 'module' and 'ini' to each cached topic. 'module' is the topic's module, and 'ini' is a direct dump of that topics ini entry, as an array.
Remaining tasks
Not sure.
User interface changes
None.
API changes
This would expand the amount of information available in hook_advanced_help_topic_info_alter()
Comment | File | Size | Author |
---|---|---|---|
#8 | advanced_help-ini_data_to_alter-1471092-8.patch | 671 bytes | Cauliflower |
#6 | advanced_help-ini_data_to_alter-1471092-6.patch | 671 bytes | Jon Pugh |
advanced_help-ini_data_to_alter.patch | 663 bytes | Jon Pugh |
Comments
Comment #1
yktdan CreditAttribution: yktdan commented+1 on adding this patch. I have long needed to have useful help for our normal users.
Comment #2
hcderaad CreditAttribution: hcderaad commented+1
Comment #3
bleen CreditAttribution: bleen commentedthe patch in the original post does not apply
Comment #4
kostajh CreditAttribution: kostajh commentedIt works just fine:
patch -p0 < advanced_help-ini_data_to_alter.patch
Comment #5
bleen CreditAttribution: bleen commentedThis patch was not created with git diff and will not apply with git apply ... This is the accepted practice on d.o.
Comment #6
Jon Pughbleen18 is right, I'm bad at this. The newer recommended patching method is with git, I was using some old techniques...
Here is a patch that applies to 7.x-1.x
Tested with git apply.
Comment #7
bleen CreditAttribution: bleen commentedLooks good ... Thanks for re-rolling
Also, ya know ... feature looks good too. RTBC
Comment #8
Cauliflower CreditAttribution: Cauliflower commentedPatch based on new dev version.
Comment #9
redndahead CreditAttribution: redndahead commentedThis has been committed.