Degugging via the Watchdog
Rating:
Clone this SnippetSubmitted 6 years 10 months ago by peter.
- Log in to post comments
This allows to display an object/ array (example : $node / $form ) in a more friendly way in the watchdog.
watchdog("module_name", '<pre>' . var_dump( $the_array_object, true) . '</pre>');
Category:
DrupalDrupal Version:
7