知識社群登入
node_view()
by 蘇德宙, 2011-04-30 16:08, 人氣(1332)

function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) {
  $node = node_build_content($node, $teaser, $page);

  $content = drupal_render($node->content);
  node_invoke_nodeapi($node, 'alter', $teaser, $page);

  return theme('node', $node, $teaser, $page);
}