diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-23 22:24:19 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-10-23 22:24:19 +0000 |
commit | a7149821d61d00cfb62d5ab67cbc2a282d53d41a (patch) | |
tree | fa0022b756838f583c2641a84241de80fb177606 /modules/user/user.module | |
parent | f2d90e99fb1107d78291ab2899f9fdb08bdfa979 (diff) | |
download | brdo-a7149821d61d00cfb62d5ab67cbc2a282d53d41a.tar.gz brdo-a7149821d61d00cfb62d5ab67cbc2a282d53d41a.tar.bz2 |
#600974 by effulgentsia, JohnAlbin, sun, and Damien Tournoud: Allow theme functions to take one argument without any hacks. NOTE: This is an API change in hook_theme().
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 5e4f60ade..d0e1027fe 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -36,45 +36,45 @@ function user_module_invoke($type, &$edit, $account, $category = NULL) { function user_theme() { return array( 'user_picture' => array( - 'arguments' => array('account' => NULL), + 'variables' => array('account' => NULL), 'template' => 'user-picture', ), 'user_profile' => array( - 'arguments' => array('elements' => NULL), + 'render element' => 'elements', 'template' => 'user-profile', 'file' => 'user.pages.inc', ), 'user_profile_category' => array( - 'arguments' => array('element' => NULL), + 'render element' => 'element', 'template' => 'user-profile-category', 'file' => 'user.pages.inc', ), 'user_profile_item' => array( - 'arguments' => array('element' => NULL), + 'render element' => 'element', 'template' => 'user-profile-item', 'file' => 'user.pages.inc', ), 'user_list' => array( - 'arguments' => array('users' => NULL, 'title' => NULL), + 'variables' => array('users' => NULL, 'title' => NULL), ), 'user_admin_permissions' => array( - 'arguments' => array('form' => NULL), + 'render element' => 'form', 'file' => 'user.admin.inc', ), 'user_admin_new_role' => array( - 'arguments' => array('form' => NULL), + 'render element' => 'form', 'file' => 'user.admin.inc', ), 'user_filter_form' => array( - 'arguments' => array('form' => NULL), + 'render element' => 'form', 'file' => 'user.admin.inc', ), 'user_filters' => array( - 'arguments' => array('form' => NULL), + 'render element' => 'form', 'file' => 'user.admin.inc', ), 'user_signature' => array( - 'arguments' => array('signature' => NULL), + 'variables' => array('signature' => NULL), ), ); } |