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>';?>
More like this
- Find the function definition of the current function or find uses of a given function
- Where is my Drupal? How to find a lost Drupal site on a server if you can still get to the site
- Possible use case and taxonomy thoughts from a linguist
- Calling watchdog function (logging info) in Drupal 6
- Ask Agaric: Where does that directory link in the Navigation menu come from?


Comments
Post new comment