devel_print_object
Drupal 7 devel_print_object($object, $prefix = NULL, $header = TRUE)
Display an object or array
Parameters
$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
1 call to devel_print_object()
File
- sites/
all/ modules/ devel/ devel.module, line 1350
Code
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;
}

