diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-01 17:31:26 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-01 17:31:26 -0400 |
commit | c312e5ee5589d060601f633deba3be26df494815 (patch) | |
tree | 0db9e745cdbefcec1cb9d6453669139901bf9546 /modules/user | |
parent | 5aede0dadeb785ca30f5e16c6d67281286a047ee (diff) | |
download | brdo-c312e5ee5589d060601f633deba3be26df494815.tar.gz brdo-c312e5ee5589d060601f633deba3be26df494815.tar.bz2 |
Issue #1968348 by znerol, David_Rothstein, peximo, DuaelFr: Fixed hook_field_formatter_prepare_view does not make use of hook_entity_view_mode_alter causing major errors.
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.module | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index b23979937..89d99da73 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2633,12 +2633,7 @@ function user_build_content($account, $view_mode = 'full', $langcode = NULL) { $account->content = array(); // Allow modules to change the view mode. - $context = array( - 'entity_type' => 'user', - 'entity' => $account, - 'langcode' => $langcode, - ); - drupal_alter('entity_view_mode', $view_mode, $context); + $view_mode = key(entity_view_mode_prepare('user', array($account->uid => $account), $view_mode, $langcode)); // Build fields content. field_attach_prepare_view('user', array($account->uid => $account), $view_mode, $langcode); |