You are here

function devel_render in Devel 7

Same name and namespace in other branches
  1. 8.3 devel.module \devel_render()
  2. 8 devel.module \devel_render()
  3. 8.2 devel.module \devel_render()
  4. 4.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
This module holds functions useful for Drupal development.

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);
}