function _views_bulk_operations_script_action_error_type in Views Bulk Operations (VBO) 7.3
Same name and namespace in other branches
- 6 actions/script.action.inc \_views_bulk_operations_script_action_error_type()
1 call to _views_bulk_operations_script_action_error_type()
File
- actions/
script.action.inc, line 68
Code
function _views_bulk_operations_script_action_error_type($type) {
$types = array(
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice',
E_RECOVERABLE_ERROR => 'Catchable Fatal Error',
);
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
$types += array(
E_DEPRECATED => 'Deprecated Notice',
E_USER_DEPRECATED => 'User Deprecated Notice',
);
}
return t($types[$type]);
}