function content_view in Content Construction Kit (CCK) 5
Same name and namespace in other branches
- 6.3 content.module \content_view()
- 6 content.module \content_view()
- 6.2 content.module \content_view()
Generate field render arrays.
1 call to content_view()
- content_nodeapi in ./
content.module - Implementation of hook_nodeapi().
File
- ./
content.module, line 299 - Allows administrators to associate custom fields to content types.
Code
function content_view(&$node, $teaser = FALSE, $page = FALSE) {
if ($node->in_preview) {
_content_widget_invoke('process form values', $node);
}
$content = _content_field_view($node, $teaser, $page);
$node->content = array_merge((array) $node->content, $content);
}