Commit 78bc4c32 authored by webchick's avatar webchick

#688862 by webchick: Fixed Documentation problem with hook_node_view().

parent 78c835e4
......@@ -565,7 +565,7 @@ function hook_node_validate($node, $form) {
*/
function hook_node_view($node, $view_mode) {
$node->content['my_additional_field'] = array(
'#value' => $additional_field,
'#markup' => $additional_field,
'#weight' => 10,
'#theme' => 'mymodule_my_additional_field',
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment