diff options
-rw-r--r-- | modules/comment/comment.api.php | 2 | ||||
-rw-r--r-- | modules/node/node.api.php | 2 | ||||
-rw-r--r-- | modules/user/user.api.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php index 0d2c17d76..c7d2f6afa 100644 --- a/modules/comment/comment.api.php +++ b/modules/comment/comment.api.php @@ -89,7 +89,7 @@ function hook_comment_view($comment) { * * @see comment_view() */ -function hook_comment_view_alter($build) { +function hook_comment_view_alter(&$build) { // Check for the existence of a field added by another module. if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. diff --git a/modules/node/node.api.php b/modules/node/node.api.php index 51fe9037f..e33ce616c 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -591,7 +591,7 @@ function hook_node_view($node, $view_mode) { * * @see node_view() */ -function hook_node_view_alter($build) { +function hook_node_view_alter(&$build) { if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) { // Change its weight. $build['an_additional_field']['#weight'] = -10; diff --git a/modules/user/user.api.php b/modules/user/user.api.php index e7e69c7ae..6f818688d 100644 --- a/modules/user/user.api.php +++ b/modules/user/user.api.php @@ -345,7 +345,7 @@ function hook_user_view($account, $view_mode) { * * @see user_view() */ -function hook_user_view_alter($build) { +function hook_user_view_alter(&$build) { // Check for the existence of a field added by another module. if (isset($build['an_additional_field'])) { // Change its weight. |