views:

22

answers:

1

Is there a better way to find all form elements in a Drupal form than doing a print_r($form)? This dumps excessive amount of information and it is no obvious what to look for.

A: 

The devel module give you access to various debugging tools, like dpm which prints data like arrays much cleaner than print_r using krumo.

Another option if you use firefox would be to Drupal For Firebug

googletorp
I got dpm($form) working. Nice! This is much better way to view data. I am still trying to figure out where stuff is coming from eg: location longitude
bert