function views_bulk_operations_action in Views Bulk Operations (VBO) 6
Same name and namespace in other branches
- 6.3 views_bulk_operations.module \views_bulk_operations_action()
Execution function for views_bulk_operations_action action.
1 call to views_bulk_operations_action()
File
- ./
views_bulk_operations.module, line 1424 - Allows operations to be performed on items selected in a view.
Code
function views_bulk_operations_action(&$object, $context) {
$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']);
}
if (!empty($context['operation_arguments'])) {
$operation_arguments = eval($context['operation_arguments']);
}
else {
$operation_arguments = $context;
foreach (array(
'operation_key',
'operation_arguments',
'views_vid',
'view_exposed_input',
'view_arguments',
) as $key) {
unset($operation_arguments[$key]);
}
}
views_bulk_operations_execute($context['view_vid'], $context['operation_key'], $operation_arguments, $view_exposed_input, $view_arguments, $context['respect_limit']);
}