PeteS [inclind]
PeteS - July 29, 2009 - 18:35
| Project: | Drupal.org CVS applications |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The most immediate motivation is to share a module (tentatively, "Multiple Node Menu") that we have made to enable configuring multiple menu assignments on a node page (i.e., without having to go to the menu section to manually add links). This feature does not seem to exist in any other module, and is still merely a proposal for Drupal 7 that does not seem to have much support as a core capability. The module uses all standard hooks, Ajax/AHAH, and would work very well with Hierarchical Select if HS were to fix a few issues.
We also have a number of other practical modules that we have developed in-house that could be contributed in the future.

#1
#2
Err, had to fix a styling issue.
#3
Screenshot attached.
#4
#5
Replaced tabs with spaces.
#6
<?phpfunction menu_multiple_node_menu_install() {
return;
}
?>
There is no need to define an install function that doesn't do anything.
#7
Fair enough. Empty .install function/file removed.
#8
Some minor nitpicks:
- I'd remove the
package = User interfacefrom the .info since you are not part of a larger module package like Views or CCK.- Make sure to also remove the last four lines from the .info file as that is going to be added by the drupal.org packaging script automatically, so you should not have those lines in the CVS versions.
- Your access controls on the JS callback should really check user_access('administer menu') and not 'access content' since you are working with menus. This also matches the permission used for actions in menu.module.
Otherwise I think everything looks really really good. Very nice work with this.
-
#9
All great suggestions, thank you Dave. Those changes are in the latest tarball.
#10
#11
Automatically closed -- issue fixed for 2 weeks with no activity.