Skip to content

Instantly share code, notes, and snippets.

@andymantell
Created May 17, 2011 12:48
Show Gist options
  • Save andymantell/976410 to your computer and use it in GitHub Desktop.
Save andymantell/976410 to your computer and use it in GitHub Desktop.
Piping results of node_load_multiple through an item list
$nodes = node_load_multiple(array(1,2,3));
$block['content'] = array(
'#theme' => 'item_list',
'#items' => node_view_multiple($nodes),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment