Posted by joachim on November 27, 2012 at 2:39pm
8 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | needs backport to D7, Novice |
Issue Summary
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.
Comments
#1
What does this property do?
#2
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.
#3
OK, thanks! Sounds like a good Novice project to add this to the documentation.
#4
First ever attempt at a patch, adding documentation for 'expanded' property in hook_menu.
#5
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.
#6
Correcting spelling error.
#7
That version looks fine, thanks!
#8
Committed to 8.x. Thanks.
#9
#10
7.x version patch ported from drupal-hook-menu-expanded-property-1851788-6.patch
#11
Thanks! I'll get this committed shortly.
#12
#4: drupal-hook-menu-expanded-property-1851788-4.patch queued for re-testing.
#13
Committed to 7.x. Thanks again!
#14
Automatically closed -- issue fixed for 2 weeks with no activity.