Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How do I programmatically render a node's teaser using the theme layer?
node_view() is the standard function for rendering nodes, e.g.
$node = node_load(1);
$view = node_view($node, 'teaser');
$rendered = drupal_render($view);
There is a node theme defined by the node module (in node_theme()) but I've never actually seen it used.
$build += array(
Required, but never shown