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 1


Install the devel module http://drupal.org/project/devel. In your code call dpm($form);

  • 1
    has 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 ?
    – AKS
    Jan 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.
    – AKS
    Jan 22, 2013 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.