function entity_metadata_view_node in Entity API 7
Callback to view nodes.
1 string reference to 'entity_metadata_view_node'
- _entity_info_add_metadata in ./
entity.module - Adds metadata and callbacks for core entities to the entity info.
File
- modules/
callbacks.inc, line 959 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_view_node($entities, $view_mode = 'full', $langcode = NULL) {
$result = node_view_multiple($entities, $view_mode, 0, $langcode);
// Make sure to key the result with 'node' instead of 'nodes'.
return array(
'node' => reset($result),
);
}