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.

Files: 
CommentFileSizeAuthor
#10 drupal-hook-menu-expanded-property-1851788-9.patch938 bytescck
PASSED: [[SimpleTest]]: [MySQL] 39,788 pass(es).
[ View ]
#6 drupal-hook-menu-expanded-property-1851788-6.patch968 bytesblake.thompson
PASSED: [[SimpleTest]]: [MySQL] 49,305 pass(es).
[ View ]
#4 drupal-hook-menu-expanded-property-1851788-4.patch967 bytesblake.thompson
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-hook-menu-expanded-property-1851788-4.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Issue tags:+needs backport to D7

What does this property do?

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.

Issue tags:+Novice

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

Status:Active» Needs review
StatusFileSize
new967 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-hook-menu-expanded-property-1851788-4.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

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

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.

Status:Needs work» Needs review
StatusFileSize
new968 bytes
PASSED: [[SimpleTest]]: [MySQL] 49,305 pass(es).
[ View ]

Correcting spelling error.

Status:Needs review» Reviewed & tested by the community

That version looks fine, thanks!

Status:Reviewed & tested by the community» Fixed

Committed to 8.x. Thanks.

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

Assigned:Unassigned» cck
Status:Patch (to be ported)» Needs review
StatusFileSize
new938 bytes
PASSED: [[SimpleTest]]: [MySQL] 39,788 pass(es).
[ View ]

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

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

Thanks! I'll get this committed shortly.

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.