Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
5.x-1.x-dev
Component:
Core
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
5 May 2008 at 14:38 UTC
Updated:
7 Apr 2011 at 10:03 UTC
Sorry for the simple question, but trying to understand the capabilities of this module.
Can the checked nodes be posted to a custom php page? I need to perform some calculations on the nodes that were selected and programmatically generate an email.
Thanks for this mod. It looks cool!
Comments
Comment #1
infojunkieGood question because there's an important gotcha to be noted. Views Bulk Operations supports two kinds of operations to be performed on selected nodes: those that are defined through hook_node_operations and those defined as actions. To perform your own logic, you can either implement hook_node_operations() in your own module, or create a new action. In either case, you will select that new operation in the Operations tab of the bulk view.
Now here comes the trick: if your logic needs to process several nodes at once, e.g. to compute an average, then your best best is probably using hook_node_operations. Why? Because this hook accepts an array of nodes to be processed, whereas actions only accept one node at a time (and thus VBO repeatedly calls the action with each selected node).
Comment #2
infojunkieComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
kenorb commentedThanks.