function devel_render

Same name in other branches
  1. 4.x devel.module \devel_render()
  2. 5.x devel.module \devel_render()

Prints a renderable array element to the screen using kprint_r().

#pre_render and/or #post_render pass-through callback for kprint_r().

@todo Investigate appending to #suffix. @todo Investigate label derived from #id, #title, #name, and #theme.

File

./devel.module, line 2124

Code

function devel_render() {
    $args = func_get_args();
    // #pre_render and #post_render pass the rendered $element as last argument.
    kprint_r(end($args));
    // #pre_render and #post_render expect the first argument to be returned.
    return reset($args);
}