[development] Views Bulk Operations redirect

Athanasios Velios a.velios at gmail.com
Tue Jul 3 22:28:44 UTC 2012

Thanks for this - well spotted! The patch assumes the default TRUE 
argument for redirection. Turning that to FALSE sorted the problem.

More discussion here: http://drupal.org/node/1553700#comment-6192538


On 03/07/12 21:35, Lee Rowlands wrote:
> Hey
> uc_cart_add_item has redirect logic bundled into it.
> Have a look at the additional parameters.
> Have a look at how uc subproduct does it here:
> http://drupalcode.org/project/uc_subproduct.git/blob/refs/heads/6.x-1.x:/uc_subproduct.module#l797,
> it's table lets you add multiple products to the cart in one go
> Lee Rowlands
> On 3 July 2012 18:39, Athanasios Velios <a.velios at gmail.com
> <mailto:a.velios at gmail.com>> wrote:
>     Hello,
>     I thought I will post a message before creating a new issue at
>     drupal.org <http://drupal.org>.
>     I have a View with a VBO field and a single action. I want to
>     redirect the user to another page once the action is completed. I am
>     able to do this with ?destination=url or $form['redirect'], but the
>     action only takes place for the first item in the list and not the
>     rest. Any ideas?
>     More specifically, I have a new "add to cart" action which has
>     recently been committed to ubercart here:
>     http://drupal.org/files/uc___vbo_1.patch
>     <http://drupal.org/files/uc_vbo_1.patch>
>     and I want the View to redirect the user to /cart after the products
>     have been added.
>     Thank you in advance for any ideas.
>     Thanasis

More information about the development mailing list