function views_trace in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 views.module \views_trace()
- 7.3 views.module \views_trace()
2 calls to views_trace()
- vpr_trace in ./
views.module - vsm_trace in ./
views.module
File
- ./
views.module, line 969 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_trace() {
$message = '';
foreach (debug_backtrace() as $item) {
if (!empty($item['file']) && !in_array($item['function'], array(
'vsm_trace',
'vpr_trace',
'views_trace',
))) {
$message .= basename($item['file']) . ": " . (empty($item['class']) ? '' : $item['class'] . '->') . "{$item['function']} line {$item['line']}" . "\n";
}
}
return $message;
}