background image

Content tagged with: scope

Eric's picture

The Drupal framework and theme engine are very powerful. Whenever I override a function, I start with the following code to see what variables are defined in the current function scope...

<?php
echo "<pre>";
print_r(get_defined_vars());
echo
"</pre>";
?>