function user_theme

Same name in other branches
  1. 9 core/modules/user/user.module \user_theme()
  2. 8.9.x core/modules/user/user.module \user_theme()
  3. 10 core/modules/user/user.module \user_theme()

Implements hook_theme().

File

modules/user/user.module, line 108

Code

function user_theme() {
    return array(
        'user_picture' => array(
            'variables' => array(
                'account' => NULL,
            ),
            'template' => 'user-picture',
        ),
        'user_profile' => array(
            'render element' => 'elements',
            'template' => 'user-profile',
            'file' => 'user.pages.inc',
        ),
        'user_profile_category' => array(
            'render element' => 'element',
            'template' => 'user-profile-category',
            'file' => 'user.pages.inc',
        ),
        'user_profile_item' => array(
            'render element' => 'element',
            'template' => 'user-profile-item',
            'file' => 'user.pages.inc',
        ),
        'user_list' => array(
            'variables' => array(
                'users' => NULL,
                'title' => NULL,
            ),
        ),
        'user_admin_permissions' => array(
            'render element' => 'form',
            'file' => 'user.admin.inc',
        ),
        'user_admin_roles' => array(
            'render element' => 'form',
            'file' => 'user.admin.inc',
        ),
        'user_permission_description' => array(
            'variables' => array(
                'permission_item' => NULL,
                'hide' => NULL,
            ),
            'file' => 'user.admin.inc',
        ),
        'user_signature' => array(
            'variables' => array(
                'signature' => NULL,
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.