function views_debug
3.x views.module | views_debug($message, |
2.x views.module | views_debug($message) |
Provide debug output for Views. This relies on devel.module
1 call to views_debug()
- vpr in ./
views.module - Shortcut to views_debug()
File
- ./
views.module, line 936 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_debug($message) {
if (module_exists('devel') && variable_get('views_devel_output', FALSE) && user_access('access devel information')) {
if (is_string($message)) {
$output = $message;
}
else {
$output = var_export($message, TRUE);
}
if (variable_get('views_devel_region', 'footer') != 'watchdog') {
drupal_set_content(variable_get('views_devel_region', 'footer'), '<pre>' . $output . '</pre>');
}
else {
watchdog('views_logging', '<pre>' . $output . '</pre>');
}
}
}