devel_print_object($object, $prefix = NULL, $header = TRUE)Display an object or array
$object the object or array
$prefix prefix for the output items (example "$node->", "$user->", "$")
$header set to FALSE to suppress the output of the h3
sites/all/modules/devel/devel.module, line 1399
<?php
function devel_print_object($object, $prefix = NULL, $header = TRUE) {
drupal_add_css(drupal_get_path('module', 'devel') .'/devel.css');
$output = '<div class="devel-obj-output">';
if ($header) {
$output .= '<h3>'. t('Display of !type !obj', array('!type' => str_replace(array('$', '->'), '', $prefix), '!obj' => gettype($object))) .'</h3>';
}
$output .= _devel_print_object($object, $prefix);
$output .= '</div>';
return $output;
}
?>