function views_trace

Same name in other branches
  1. 6.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 1896

Code

function views_trace() {
    $message = '';
    foreach (debug_backtrace() as $item) {
        $traces = array(
            'vsm_trace',
            'vpr_trace',
            'views_trace',
        );
        if (!empty($item['file']) && !in_array($item['function'], $traces)) {
            $message .= basename($item['file']) . ": " . (empty($item['class']) ? '' : $item['class'] . '->') . "{$item['function']} line {$item['line']}" . "\n";
        }
    }
    return $message;
}