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 |
Jump to:
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
+1
#2
+1
#3
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
Automatically closed -- issue fixed for 2 weeks with no activity.