4

I want to use the Views Bulk Operations (VBO) module to get the possibility to select nodes from a view and then do an action on each of them. However, this action requires additional data to be supplied by user, so what I need is to put another form in between VBO submit and the actual action processing.

I am using the *hook_action_info* hook to define my action. However, as I went through the *hook_action_info* documentation it seems to me that this is not doable using this hook as there is no configuration option to suppress the action bulk ajax update.

Can somebody confirm and/or propose better solution?

In short: User selects nodes from a view using checkboxes, after submitting the form another form appears asking for some more details (having list of nodes as hidden elements in it) and after submitting this one, e-mail is sent per every node. The body of the e-mails is always a combination of node data and the second form data.

Thanks a lot. Petiar.

4

1 に答える 1

1

そこで、Views と VBO を忘れて (難しい感情はありません)、独自のカスタム フォームを作成することにしました。これが大きな問題にならないことを実際に私に確信させた主なものは、tableselectフォーム要素の型です。これは Drupal 7 で呼び出されたと思いますが、魔法のようです。少なくとも一見の価値があります:

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

立ち寄ってくれてありがとう。

于 2012-12-19T10:43:02.497 に答える