Show all available variables

Sometime when working with an API, you have a heap of variables available – but what are they?

You can use the PHP function

get_defined_vars();

In Drupal, if you have the Devel module enabled, you can also use

dpm(get_defined_vars());

Leave a Reply

Your email address will not be published. Required fields are marked *