Project:CiviCRM 2.0+ Compatibility
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:gordon
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
menu_query.patch.txt770 bytes

Comments

#1

Status:needs review» fixed

Committed to CVS HEAD.

(Looks like a stupid function to me.)

#2

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

#3

Project:Drupal core» Documentation
Version:x.y.z» <none>
Component:menu system» Documentation in CVS
Status:fixed» needs review

Here is the changes to the api for hook_menu()

AttachmentSize
menu_doc.patch.txt 814 bytes

#4

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!

#5

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.

AttachmentSize
civicrm_menu.patch.txt 9.14 KB

#6

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.

#7

Project:Documentation» Drupal core
Version:<none>» 7.x-dev
Component:Documentation in CVS» documentation

#8

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

#9

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.

--project followup subject--

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

#10

Status:fixed» closed (fixed)

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

nobody click here