You are here

function _views_bulk_operations_report_error in Views Bulk Operations (VBO) 6.3

Same name and namespace in other branches
  1. 7.3 views_bulk_operations.module \_views_bulk_operations_report_error()

Helper function to report an error.

2 calls to _views_bulk_operations_report_error()
views_bulk_operations_add_actions in ./views_bulk_operations.module
API function to add actions to a VBO.
views_bulk_operations_execute in ./views_bulk_operations.module
API function to programmatically invoke a VBO.

File

./views_bulk_operations.module, line 1350
Allows operations to be performed on items selected in a view.

Code

function _views_bulk_operations_report_error($msg, $arg) {
  watchdog('views bulk operations', $msg, $arg, WATCHDOG_ERROR);
  if (function_exists('drush_set_error')) {
    drush_set_error('VIEWS_BULK_OPERATIONS_EXECUTION_ERROR', strip_tags(dt($msg, $arg)));
  }
}