function _views_bulk_operations_log in Views Bulk Operations (VBO) 7.3
Same name and namespace in other branches
- 6.3 views_bulk_operations.module \_views_bulk_operations_log()
Display a message to the user through the relevant function.
2 calls to _views_bulk_operations_log()
- views_bulk_operations_archive_action in actions/
archive.action.inc - Since Drupal's Archiver doesn't abstract properly the archivers it implements (Archive_Tar and ZipArchive), it can't be used here.
- views_bulk_operations_execute_finished in ./
views_bulk_operations.module - Helper function that runs after the execution process is complete.
File
- ./
views_bulk_operations.module, line 1353 - Allows operations to be performed on items selected in a view.
Code
function _views_bulk_operations_log($msg) {
// Is VBO being run through drush?
if (function_exists('drush_log')) {
drush_log(strip_tags($msg), 'ok');
}
else {
drupal_set_message($msg);
}
}