function node_build_content in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \node_build_content()
Builds a structured array representing the node's content.
The content built for the node (field values, comments, file attachments or other node components) will vary depending on the $build_mode parameter.
Drupal core defines the following build modes for nodes, with the following default use cases:
- full (default): node is being displayed on its own page (node/123)
- teaser: node is being displayed on the default home page listing, on taxonomy listing pages, or on blog listing pages.
- rss: node displayed in an RSS feed.
If search.module is enabled:
- search_index: node is being indexed for search.
- search_result: node is being displayed as a search result.
If book.module is enabled:
- print: node is being displayed in print-friendly mode.
Contributed modules might define additional build modes, or use existing build modes in additional contexts.
Parameters
$node: A node object.
$build_mode: Build mode, e.g. 'full', 'teaser'...
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 2303
Code
function node_build_content($node, $build_mode = 'full') {
}