summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-05-18 00:07:38 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2011-05-18 00:07:38 -0500
commit75a0deb2722bde4fc7d60d02f186809fbc77320d (patch)
tree32f7f65f2a30a4970550f93e45f79c2b4c3bd589 /modules/system/system.api.php
parent8c3dbb5e7f0a997662350ca44efa271514e83047 (diff)
downloadbrdo-75a0deb2722bde4fc7d60d02f186809fbc77320d.tar.gz
brdo-75a0deb2722bde4fc7d60d02f186809fbc77320d.tar.bz2
Issue #1089174 by plach: Fixed Prepare view hooks do not receive the language parameter.
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 1b295b4f4..8792057cc 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -502,8 +502,10 @@ function hook_admin_paths_alter(&$paths) {
* The entities keyed by entity ID.
* @param $type
* The type of entities being loaded (i.e. node, user, comment).
+ * @param $langcode
+ * The language to display the entity in.
*/
-function hook_entity_prepare_view($entities, $type) {
+function hook_entity_prepare_view($entities, $type, $langcode) {
// Load a specific node into the user object for later theming.
if ($type == 'user') {
$nodes = mymodule_get_user_nodes(array_keys($entities));