function boost_backtrace in Boost 6
Runs debug_backtrace() and returns string containing that info.
Parameters
$args bool: output function arguments?
Return value
$output string parsed backtrace output
1 call to boost_backtrace()
- boost_cache_set_node_relationships in ./
boost.module - Creates a parent child relationship for pages like views.
File
- ./
boost.module, line 5634 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_backtrace($args = TRUE) {
$output = '';
foreach (debug_backtrace() as $key => $entry) {
$output .= "\n\nLevel {$key} \n";
if (array_key_exists('file', $entry)) {
$output .= "File: " . $entry['file'];
if (array_key_exists('line', $entry)) {
$output .= " (Line: " . $entry['line'] . ")";
}
$output .= "\n";
}
if (array_key_exists('function', $entry)) {
$output .= "Function: " . $entry['function'] . "\n";
}
if ($args && array_key_exists('args', $entry)) {
$output .= "Args: " . implode(", ", $entry['args']) . "\n";
}
$output .= '<br />';
}
return $output;
}