You are here

function devel_render_object in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \devel_render_object()
  2. 7 devel.pages.inc \devel_render_object()

Menu callback; prints the renderstructure of the current node.

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

File

./devel.module, line 1115

Code

function devel_render_object($type, $id) {
  $output = '';
  switch ($type) {
    case 'node':
      $object = node_build_content(node_load($id), FALSE, FALSE);
      drupal_set_title(check_plain($object->title));
      break;
    case 'user':

      // not yet using fapi render model
      break;
  }
  return devel_print_object($object);
}