Skip to content
Snippets Groups Projects
Commit 78bc4c32 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 78c835e4
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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',
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment