function views_bulk_operations_argument_selector_action in Views Bulk Operations (VBO) 6
Same name and namespace in other branches
- 6.3 argument_selector.action.inc \views_bulk_operations_argument_selector_action()
- 7.3 actions/argument_selector.action.inc \views_bulk_operations_argument_selector_action()
Implementation of a Drupal action. Passes selected nodes as arguments to a view.
File
- actions/
argument_selector.action.inc, line 27 - Passes selected objects as arguments to a page or view.
Code
function views_bulk_operations_argument_selector_action($objects, $context = array()) {
$base_url = $context['url'];
// $objects is an array of object IDs, since the action includes aggregate.
$arguments = implode(',', $objects);
drupal_goto($base_url . "/" . $arguments);
}