/[drupal]/contributions/docs/developer/theme.php
ViewVC logotype

Contents of /contributions/docs/developer/theme.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Apr 28 16:41:35 2009 UTC (7 months ago) by darrenoh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +16 -1 lines
File MIME type: text/x-php
by Darren Oh: Added documentation for theme_user_profile().
1 <?php
2 // $Id: theme.php,v 1.1 2009/04/28 16:34:26 darrenoh Exp $
3
4 /**
5 * @file
6 * Shadow theme functions for theme templates.
7 *
8 * This file provides function definitions for output that is generated by theme
9 * templates by default. Themers who wish to override output with theme
10 * functions instead of templates can find documentation for those functions
11 * here.
12 *
13 * @addtogroup themeable
14 * @{
15 */
16
17 /**
18 * Theme a user page.
19 *
20 * @param $elements
21 * A content form array. $elements['#account'] contains the user object.
22 * @return
23 * A formatted HTML string.
24 *
25 * @see template_preprocess_user_profile()
26 * @see user-profile.tpl.php
27 */
28 function theme_user_profile($elements) {
29 return drupal_render($elements);
30 }
31
32 /**
33 * @} End of "addtogroup themeable".
34 */

  ViewVC Help
Powered by ViewVC 1.1.2