function views_bulk_operations_action in Views Bulk Operations (VBO) 6.3
Same name and namespace in other branches
- 6 views_bulk_operations.module \views_bulk_operations_action()
Execution function for views_bulk_operations_action action.
1 string reference to 'views_bulk_operations_action'
- views_bulk_operations_rules_action_info_alter in ./
views_bulk_operations.rules.inc - Implementation of hook_rules_action_alter().
File
- ./
views_bulk_operations.module, line 1272 - Allows operations to be performed on items selected in a view.
Code
function views_bulk_operations_action(&$object, $context) {
$operation_arguments = array();
if (!empty($context['operation_arguments'])) {
$operation_arguments = eval($context['operation_arguments']);
}
$view_exposed_input = array();
if (!empty($context['view_exposed_input'])) {
$view_exposed_input = eval($context['view_exposed_input']);
}
$view_arguments = array();
if (!empty($context['view_arguments'])) {
$view_arguments = eval($context['view_arguments']);
}
views_bulk_operations_execute($context['view_vid'], $context['operation_callback'], $operation_arguments, $view_exposed_input, $view_arguments);
}