Home ›
Find where a function is used (being called from)Find where a function is used (being called from)
Submitted by Benjamin Melançon on July 9, 2007 - 2:26pm
On the Drupal IRC channel, some very useful PHP info:
Selanit: Is there anyway to identify the calling function of a Drupal theme function?
Heine:
<?php print '<pre>'. check_plain(print_r(debug_back_trace(), TRUE)) .'</pre>';?>
On the Drupal IRC channel, some very useful PHP info:
Selanit: Is there anyway to identify the calling function of a Drupal theme function?
Heine:
<?php print '<pre>'. check_plain(print_r(debug_back_trace(), TRUE)) .'</pre>';?>
Comments
Post new comment