I found it usefull to pass view information to action configuration form. It makes possible to adjust form values based on view arguments or filter values, etc. Patch for 6.x-1.3 provided.

CommentFileSizeAuthor
sendviewinfo.patch1.03 KBNickSI

Comments

infojunkie’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Assigned: Unassigned » infojunkie
Status: Needs review » Fixed

Thanks for the useful idea. I committed it to the latest 6.x-1.x-dev release. You had missed an invocation of _views_bulk_operations_action_form() so I fixed that. Cheers!

mitchell’s picture

@NickSI: just wondering, what's your use case for this?

NickSI’s picture

@mitchell: The simplest one will be using arguments from view (as they are supposed to be validated, etc.) instead of parsing URL. Let's say you want to link one node to many others. None of nodereference widgets let you do easy search/filtering in case if you have more than 50 nodes to choose from. So the solution will be to provide 'parent' with the link which will open view to select potential 'children'. View will receive parent's nid as argument in order to filter out already linked nodes. So, you take your time to choose nodes you like and start bulk operation. In your action you should either parse the URL to get parent nid, or, with this patch, get it from the view arguments.

Status: Fixed » Closed (fixed)

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