Here is a small patch that allows modules to add to the querystring of an item.

Case: I have used this to allow CiviCRM use standard menu entries for it's functions instead of the custom block that is currently being used. I am going to submit a patch for the next version of CiviCRM which will remove the current blocks and use the Drupal menu structure which is more powerful.

The attached patch was created on 4.7.2 but should apply to CVS.

Comments

dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD.

(Looks like a stupid function to me.)

gordon’s picture

Just out of interest, what is the stupid function. adding the query parameter, or the theme_menu_item() function.

gordon’s picture

Project: Drupal core » Documentation
Version: x.y.z »
Component: menu system » Documentation in CVS
Status: Fixed » Needs review
StatusFileSize
new814 bytes

Here is the changes to the api for hook_menu()

morbus iff’s picture

Gordon - thanks for this! I was just remarking to myself how annoying it was that I couldn't use query strings (for, yes, the reset=1 of a CiviCRM menu item that I was manually making into my own Drupal block). Wunderbar!

gordon’s picture

StatusFileSize
new9.14 KB

NP, my client also found this annoying. I know that this is not really related, but for interest here is that patch to CiviCRM 14. which puts all the menus in the menu.

It does remove from the blocks, but they can be another change.

Amazon’s picture

I have been testing out query strings with CiviCRM in Drupal 5. I am unable to use query strings with menu items. Could someone shed some history on what was committed and if there was another patch that removed this ability.

brunodbo’s picture

Project: Documentation » Drupal core
Version: » 7.x-dev
Component: Documentation in CVS » documentation
brunodbo’s picture

Changed the component to reflect the new component categorization. See http://drupal.org/node/301443.

catch’s picture

Project: Drupal core » CiviCRM 2.0+ Compatibility
Version: 7.x-dev » 5.x-1.x-dev
Component: documentation » Code
Status: Needs review » Fixed

Marking this very old and miscategorised issue as fixed.

Status: Fixed » Closed (fixed)

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