function views_trace

Same name in other branches
  1. 7.x-3.x views.module \views_trace()
2 calls to views_trace()
vpr_trace in ./views.module
vsm_trace in ./views.module

File

./views.module, line 1181

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;
}