Programmatic access to VBO

kratib - May 13, 2009 - 04:01
Project:Views Bulk Operations (VBO)
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:kratib
Status:closed
Description

The idea is to allow site builders to specify a view and an operation that applies to the resulting list of rows returned by the view. This is then packaged as an action that can be triggered via Trigger or Rules. Action arguments are passed to the view and the internal operation.

#1

servantleader - August 24, 2009 - 22:30

+1

#2

Pasi - September 24, 2009 - 12:05

+1

#3

kratib - September 27, 2009 - 04:19
Status:active» fixed

Implemented. People who are interested, please test it. Here's what I added:

* A function views_bulk_operations_execute($vid, $operation_callback, $operation_arguments = array(), $view_exposed_input = array()) that accepts a view ID, an operation name, and arguments for the view and operation. The function calls the view and executes the operation on the results.

* An action views_bulk_operations_action (that can be called by Trigger, Rules, etc.) that does the same. It is configurable to choose the view, the operation, and specify the extra arguments.

Enjoy!

#4

System Message - October 11, 2009 - 04:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.