> 1276

November 9, 2007

author
q9design@squatterz.com

keywords
debugging

location
drupal/debugging/

Print Funtion Call Path 

$r = debug_backtrace();
$r = array_reverse($r);

foreach($r as $t => $v)
  {
  echo "


";
  echo "$t | ";
  echo "".$v['function'] . " (".count($v['args']).") "."
";
  echo $v['file'] . " Line #".$v['line'];
  }
 
 
 
---------------------------------- 
theme functions ( called by theme(params here) )
you can override in template.php.
theme_ functions (in module.theme) files.. can be overridden in template.php as xyz_function_name (your theme name xyz (replacing the theme_ portion .. and then the rest of the function name.)