diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-23 15:30:34 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-23 15:30:34 +0000 |
commit | 435585012c75bd5073d36cf6e7500864c6332bf8 (patch) | |
tree | ecbe63762742194192f4fcb1cc4b3a6d1b629b95 /modules/user/user.module | |
parent | f914aef21b8801bf9a81ca3a4cd69484e12198c2 (diff) | |
download | brdo-435585012c75bd5073d36cf6e7500864c6332bf8.tar.gz brdo-435585012c75bd5073d36cf6e7500864c6332bf8.tar.bz2 |
#949576 by sun: Add missing hook_entity_view() and hook_entity_view_alter().
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index adfb493c1..c0372e658 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -2452,7 +2452,8 @@ function user_view($account, $view_mode = 'full', $langcode = NULL) { ); // Allow modules to modify the structured user. - drupal_alter('user_view', $build); + $type = 'user'; + drupal_alter(array('user_view', 'entity_view'), $build, $type); return $build; } @@ -2483,6 +2484,7 @@ function user_build_content($account, $view_mode = 'full', $langcode = NULL) { // Populate $account->content with a render() array. module_invoke_all('user_view', $account, $view_mode, $langcode); + module_invoke_all('entity_view', $account, 'user', $view_mode, $langcode); } /** |