Coming from #1043906: Document how to possible to add link options when defining local tasks and actions, reported by r_honey and confirmed/discussed by several others...
Problem/Motivation
In hook_menu(), you can add an 'options' element to your menu item arrays. It is documented to be used to add attributes to the generated menu links. However, the options are not currently applied when tabs are generated (MENU_LOCAL_TASK/MENU_LOCAL_ACTION).
Proposed resolution
#1043906: Document how to possible to add link options when defining local tasks and actions is asking for this behavior to be changed (to make options work with tabs).
This issue is asking for the current behavior, in the meantime, to be documented.
Remaining tasks
Update the hook_menu() documentation so it is accurate.
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#7 | patch_hook_menu_options_docs_6.patch | 835 bytes | mkadin |
#4 | patch_hook_menu_options_docs_4.patch | 1.85 KB | mkadin |
#2 | patch_hook_menu_options_docs_2.patch | 836 bytes | mkadin |
Comments
Comment #1
jhodgdonTagging... I think that since the behavior has been tested by several people over on #1043906: Document how to possible to add link options when defining local tasks and actions, it's probably a good Novice project to fix the documentation?
Comment #2
mkadin CreditAttribution: mkadin commentedComment #3
jhodgdonThanks! The wording in the patch is fine. There is an extra space at the end of one of the lines though.
Comment #4
mkadin CreditAttribution: mkadin commentedFixed!
Comment #6
jhodgdonThat patch has some extra stuff in it...
Comment #7
mkadin CreditAttribution: mkadin commentedWhoops. Here we go.
Comment #8
jhodgdonLooks good, thanks!
Comment #9
Dries CreditAttribution: Dries commentedNice. Committed to 7.x and 8.x.