Title explains the request

Reason why need it is (aka excluding the current node from reference itself is PITA):
When editing a node that has a node reference field to the content type of that fiel with a node relationship view of all nodes of that type, the current node will be a selection in that view. This is undesirable, so first thought is to add a argument that excludes that NID. However the modalframe has no context of what page it came from, so needed to add that context in. So, found the urls stored in the $form during hook_form_alter and changed them to ones that include a query argument. (From previous expierence, I think argument didn't work cause of how modalframe overrides arguments, so) created a filter to exclude that value (via hook_views_data, custom handler, etc.) Then to get the exposed form keep the value, used hook_form_views_exposed_form_alter to add my query as a hidden value if my filter was added.

This works great for the single, but totalllllly broke multisearch (the url ended up as /noderelationships/search/TYPE/field_name?myqueryarg=nid/multiselect). This patch fixes that. How it could be useful for anyone else, I'm not sure, but it makes it consistent with how the other urls are formed and couldn't think of any other way to do it.

It'd be nice if this was included.

CommentFileSizeAuthor
noderelationships_multisearchurl.patch1.46 KBhefox
Support from Acquia helps fund testing for Drupal Acquia logo