function devel_render_object

Page callback: Prints the render structure of the current object.

Parameters

string $type: The type of entity that will be displayed.

object $object: The entity to display.

string $name: (optional) The label to use when displaying the entity.

Return value

The results from kdevel_print_object().

1 string reference to 'devel_render_object'
devel_menu in ./devel.module
Implements hook_menu().

File

./devel.pages.inc, line 387

Code

function devel_render_object($type, $object, $name = NULL) {
    $name = isset($name) ? $name : $type;
    $function = $type . '_view';
    switch ($function) {
        case 'comment_view':
            $node = node_load($object->nid);
            $build = $function($object, $node);
            break;
        default:
            $build = $function($object);
    }
    return kdevel_print_object($build, '$' . $name . '->');
}