Skip to content
Snippets Groups Projects
Commit a461097c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #293078 by lilou: correction for user-profile.tpl.php documentation.

parent c14b03b6
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -13,7 +13,7 @@
* It is keyed to the name of each category or other data attached to the
* account. If it is a category it will contain all the profile items. By
* default $profile['summary'] is provided which contains data on the user's
* history. Other data can be included by modules. $profile['picture'] is
* history. Other data can be included by modules. $profile['user_picture'] is
* available by default showing the account picture.
*
* Also keep in mind that profile items and their categories can be defined by
......@@ -26,17 +26,19 @@
*
* To check for all available data within $profile, use the code below.
*
* <?php print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>'; ?>
* @code
* print '<pre>'. check_plain(print_r($profile, 1)) .'</pre>';
* @endcode
*
* @see user-profile-category.tpl.php
* where the html is handled for the group.
* Where the html is handled for the group.
* @see user-profile-field.tpl.php
* where the html is handled for each item in the group.
* Where the html is handled for each item in the group.
*
* Available variables:
* - $user_profile: All user profile data. Ready for print.
* - $profile: Keyed array of profile categories and their items or other data
* provided by modules.
* - $user_profile: All user profile data. Ready for print.
* - $profile: Keyed array of profile categories and their items or other data
* provided by modules.
*
* @see template_preprocess_user_profile()
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment