How to display an additional form while viewing in view mode?

I want to use the Mass Browsing Operations (VBO) module to be able to select nodes from a view and then perform actions on each of them. However, this action requires additional data that must be provided by the user, so I need to set a different form between sending the VBO and the actual processing of the actions.

I use hook_action_info * to determine my action. However, when I looked at the documentation * hook_action_info * it seems to me that this cannot be done using this hook, since there is no configuration option to suppress the update of the ajax array.

Can someone confirm and / or suggest a better solution?

In short: the user selects nodes from the view using checkboxes, after submitting the form, another form appears asking for more detailed information (with a list of nodes in the form of hidden elements in it), and after sending this message, an email is sent for each node. The body of email messages is always a combination of node data and second form data.

Thank you very much. Petiar.

+4
source share
1 answer

So, I decided to forget Views and VBO (without any special feelings) and create my own custom form. The main thing that actually convinced me that this would not be a big problem was the type of the tableelect element. I think it was called up in Drupal 7, and it is magic. At least worth a look:

http://api.drupal.org/api/drupal/developer%21topics%21forms_api_reference.html/7#tableselect

Thank you all for stopping by to help.

+1
source

All Articles