Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
09787420
Commit
09787420
authored
May 12, 2009
by
webchick
Browse files
#367214
follow-up by alienbrain and Berdir: Fix syntax error introduced in API documentation.
parent
ba3d1231
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.api.php
View file @
09787420
...
@@ -411,7 +411,7 @@ function hook_node_build_alter($node, $teaser) {
...
@@ -411,7 +411,7 @@ function hook_node_build_alter($node, $teaser) {
if
(
isset
(
$node
->
content
[
'an_additional_field'
]))
{
if
(
isset
(
$node
->
content
[
'an_additional_field'
]))
{
// Change its weight.
// Change its weight.
$node
->
content
[
'an_additional_field'
][
'#weight'
]
=
-
10
;
$node
->
content
[
'an_additional_field'
][
'#weight'
]
=
-
10
;
);
}
// Add a #post_render callback to act on the rendered HTML of the node.
// Add a #post_render callback to act on the rendered HTML of the node.
$node
->
content
[
'#post_render'
][]
=
'my_module_node_post_render'
;
$node
->
content
[
'#post_render'
][]
=
'my_module_node_post_render'
;
...
...
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