function _views_bulk_operations_queue_process in Views Bulk Operations (VBO) 6.3
Same name and namespace in other branches
- 5 views_bulk_operations.module \_views_bulk_operations_queue_process()
Helper function to handle Job queue operations.
1 string reference to '_views_bulk_operations_queue_process'
- _views_bulk_operations_execute in ./
views_bulk_operations.module - Helper function to execute the chosen action upon selected objects.
File
- ./
views_bulk_operations.module, line 634 - Allows operations to be performed on items selected in a view.
Code
function _views_bulk_operations_queue_process($oid, $row, $operation, $params, $uid, $display_result, $object_info) {
module_load_include('inc', 'node', 'node.admin');
$object = call_user_func($object_info['load'], $oid);
$account = user_load(array(
'uid' => $uid,
));
if (!_views_bulk_operations_object_permission($operation, $object, $object_info, $account)) {
watchdog('views bulk operations', 'Skipped %action on @type %title due to insufficient permissions.', array(
'%action' => $operation['label'],
'@type' => t($object_info['type']),
'%title' => $object->{$object_info['title']},
), WATCHDOG_ALERT);
return;
}
_views_bulk_operations_action_do($operation, $oid, $object, $row, $params, $object_info, $account);
if ($display_result) {
watchdog('views bulk operations', 'Performed %action on @type %title.', array(
'%action' => $operation['label'],
'@type' => t($object_info['type']),
'%title' => $object->{$object_info['title']},
), WATCHDOG_INFO);
}
}