function devel_print_object in Devel 6
Same name and namespace in other branches
- 5 devel.module \devel_print_object()
- 7 devel.module \devel_print_object()
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()
- kdevel_print_object in ./
devel.module - Print an object or array using either Krumo (if installed) or devel_print_object()
File
- ./
devel.module, line 1550
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;
}