Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
82d912d8
Commit
82d912d8
authored
Jul 28, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#499004
by jhodgdon: documentation updates and corrections.
parent
c071928c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/node/node.api.php
modules/node/node.api.php
+10
-10
No files found.
modules/node/node.api.php
View file @
82d912d8
...
...
@@ -846,20 +846,20 @@ function hook_validate($node, &$form) {
* information particular to that node type.
*
* @param $node
* The node to be displayed.
* The node to be displayed
, as returned by node_load()
.
* @param $build_mode
* Build mode, e.g. 'full', 'teaser'...
* Build mode, e.g. 'full', 'teaser'
,
...
* @return
* $node. The passed $node parameter should be modified as necessary and
* returned so it can be properly presented. Nodes are prepared for display
* by assembling a structured array
in $node->content, rather than directly
*
manipulating $node->body and $node->teaser. The format of this array is
*
the same used by the Forms API. As with FormAPI arrays, the #weight
*
property can be used to control the relative positions of added elements.
*
If for some reason you need to change the body or teaser returned by
*
node_prepare(),
you
c
an
modify $node->content['body']['#value']. Note
*
that this will be the un-rendered content. To modify the rendered output,
*
see hook_node($op = 'alter')
.
* by assembling a structured array
, formatted as in the Form API, in
*
$node->content. As with Form API arrays, the #weight property can be
*
used to control the relative positions of added elements. After this
*
hook is invoked, node_build() calls field_attach_view() to add field
*
views to $node->content, and then invokes hook_node_view() and
*
hook_node_build_alter(), so if
you
w
an
t to affect the final
*
view of the node, you might consider implementing one of these hooks
*
instead
.
*
* For a detailed usage example, see node_example.module.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment