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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Issue tags: +Needs backport to D7

What does this property do?

joachim’s picture

If 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.

jhodgdon’s picture

Issue tags: +Novice

OK, thanks! Sounds like a good Novice project to add this to the documentation.

blake.thompson’s picture

Status: Active » Needs review
FileSize
967 bytes

First ever attempt at a patch, adding documentation for 'expanded' property in hook_menu.

jhodgdon’s picture

Status: Needs review » Needs work

Thanks! 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.

blake.thompson’s picture

Status: Needs work » Needs review
FileSize
968 bytes

Correcting spelling error.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

That version looks fine, thanks!

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks.

jhodgdon’s picture

Version: 8.x-dev » 7.x-dev
Status: Fixed » Patch (to be ported)
cck’s picture

Assigned: Unassigned » cck
Status: Patch (to be ported) » Needs review
FileSize
938 bytes

7.x version patch ported from drupal-hook-menu-expanded-property-1851788-6.patch

jhodgdon’s picture

Assigned: cck » jhodgdon
Status: Needs review » Reviewed & tested by the community

Thanks! I'll get this committed shortly.

blacklabel_tom’s picture

jhodgdon’s picture

Assigned: jhodgdon » Unassigned
Status: Reviewed & tested by the community » Fixed

Committed to 7.x. Thanks again!

Automatically closed -- issue fixed for 2 weeks with no activity.