API page: http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct...
Enter a descriptive title (above) relating to hook_menu, then describe the problem you have found:
As mentioned in http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct..., this property is not mentioned in the docs. I can confirm it works on D7.
Comment | File | Size | Author |
---|---|---|---|
#10 | drupal-hook-menu-expanded-property-1851788-9.patch | 938 bytes | cck |
#6 | drupal-hook-menu-expanded-property-1851788-6.patch | 968 bytes | blake.thompson |
#4 | drupal-hook-menu-expanded-property-1851788-4.patch | 967 bytes | blake.thompson |
Comments
Comment #1
jhodgdonWhat does this property do?
Comment #2
joachim CreditAttribution: joachim commentedIf set, and if a menu link is provided for this menu item (as a result of other properties), then the menu link is always expanded, equivalently to its 'always expanded' checkbox being set in the UI.
Comment #3
jhodgdonOK, thanks! Sounds like a good Novice project to add this to the documentation.
Comment #4
blake.thompson CreditAttribution: blake.thompson commentedFirst ever attempt at a patch, adding documentation for 'expanded' property in hook_menu.
Comment #5
jhodgdonThanks! The only thing is that "item" is misspelled as "tem" near the beginning of the second line. Looks like you figured out the patch process though, and other than that, I think the wording is good and it's ready to go in.
Comment #6
blake.thompson CreditAttribution: blake.thompson commentedCorrecting spelling error.
Comment #7
jhodgdonThat version looks fine, thanks!
Comment #8
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thanks.
Comment #9
jhodgdonComment #10
cck CreditAttribution: cck commented7.x version patch ported from drupal-hook-menu-expanded-property-1851788-6.patch
Comment #11
jhodgdonThanks! I'll get this committed shortly.
Comment #12
blacklabel_tom CreditAttribution: blacklabel_tom commented#4: drupal-hook-menu-expanded-property-1851788-4.patch queued for re-testing.
Comment #13
jhodgdonCommitted to 7.x. Thanks again!