I just enabled the devel module on Drupal 6 and using dpm($form)
was showing values for me but it does not show values any more. What would mostly the issue here? Is there a way to see those values?
Thanks
I just enabled the devel module on Drupal 6 and using dpm($form)
was showing values for me but it does not show values any more. What would mostly the issue here? Is there a way to see those values?
Thanks
Typical cases for why a dpm(...)
doesn't show up:
dpm()
is in some cached code and is not actually being executed.dd()
to print to a log file instead.In say a validation function, to see both the $form
structure and what the user has entered, use a devel debug statement like:
dpm(array('$form' => $form, '$form_state' => $form_state), "Validation debug");
The $form_state['values']
array will contain the raw user entries you can then access and validate.