Display all variables on the page Drupal 7

  • Posted on: 21 December 2016
  • By: jmu
  1. In tpl.php file
    <?php
      print '<pre>';
      var_dump(get_defined_vars()); 
      print '</pre>';
    ?>
    
  2. Use Devel module
    <?php dpm(get_defined_vars()); ?>

REF:https://www.drupal.org/node/308732

English