summaryrefslogtreecommitdiff
path: root/modules/comment/comment.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-26 16:50:09 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-26 16:50:09 +0000
commit53748ab5e24de5e33e9cf115e91a5845daa2ecbd (patch)
tree6a2c0c9d2f933ef6d112db66a4655ce0f557126a /modules/comment/comment.api.php
parenta838c8be49ed46f9ffb911113c55f9944ae7f952 (diff)
downloadbrdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.gz
brdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.bz2
- Patch #664544 by yched: clean-up entity build/view modes.
Diffstat (limited to 'modules/comment/comment.api.php')
-rw-r--r--modules/comment/comment.api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.api.php b/modules/comment/comment.api.php
index 1eb3a891e..0d2c17d76 100644
--- a/modules/comment/comment.api.php
+++ b/modules/comment/comment.api.php
@@ -91,7 +91,7 @@ function hook_comment_view($comment) {
*/
function hook_comment_view_alter($build) {
// Check for the existence of a field added by another module.
- if ($build['#build_mode'] == 'full' && isset($build['an_additional_field'])) {
+ if ($build['#view_mode'] == 'full' && isset($build['an_additional_field'])) {
// Change its weight.
$build['an_additional_field']['#weight'] = -10;
}