summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 00:58:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 00:58:55 +0000
commit34a8a369aa0afb353d95578768903c6a1d5cd06b (patch)
treecd695ff9c71a5c221f9a5ea4603b04fbc5c2b3bd /modules/user
parentbc23bfaa11d6a8d40bb12812cfa081b9c5d9b672 (diff)
downloadbrdo-34a8a369aa0afb353d95578768903c6a1d5cd06b.tar.gz
brdo-34a8a369aa0afb353d95578768903c6a1d5cd06b.tar.bz2
#367595 by plach, catch, sun, yched, et al: Added support for translatable fields to Field API.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user-profile.tpl.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/user/user-profile.tpl.php b/modules/user/user-profile.tpl.php
index 8b50f7026..487c8bcf6 100644
--- a/modules/user/user-profile.tpl.php
+++ b/modules/user/user-profile.tpl.php
@@ -16,6 +16,13 @@
* included by modules. $user_profile['user_picture'] is available
* for showing the account picture.
*
+ * Field variables: for each field instance attached to the user a corresponding
+ * variable is defined, e.g. $user->field_example becomes $field_example. When
+ * needing to access a field's raw values, developers/themers are strongly
+ * encouraged to use these variables. Otherwise they will have to explicitly
+ * specify the desired field language, e.g. $user->field_example['en'], thus
+ * overriding any language negotiation rule that was previously applied.
+ *
* @see user-profile-category.tpl.php
* Where the html is handled for the group.
* @see user-profile-field.tpl.php