How can I inspect the $form element from the hook_node_insert($node
, $form
, $form_value
).
I need to know how it construct.
I try with firephp (dfb($form, 'form', FirePHP::LOG);)
with no success.
Please help.
1 Answer
Install the devel module http://drupal.org/project/devel. In your code call dpm($form);
-
1has the right answer. if you dont want the over head of the devel module the you can use drupal_set_message("<pre>" . print_r($form,true) . "</pre>"); Jan 22, 2013 at 11:24
-
as @OP has already used firephp, why don't you try Drupal For Firebug module ?– AKSJan 22, 2013 at 11:40
-
1@AyeshK That's the buggiest module I've ever had the misfortune to install, I'd avoid it if possible :)– Clive ♦Jan 22, 2013 at 11:42
-
I don't use it much either :) Just suggested as the OP has firephp already.– AKSJan 22, 2013 at 11:44