From b12d812b9397609a5853d8c2b73f29d282496fd9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 2 Jan 2010 15:00:34 +0000 Subject: - Patch #665878 by yched: fixed field_extra_fields() --- modules/user/user.module | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 9767c3288..1593468d2 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -155,28 +155,26 @@ function user_entity_info() { /** * Implements hook_field_extra_fields(). */ -function user_field_extra_fields($bundle) { - $extra = array(); - - if ($bundle == 'user') { - $extra['account'] = array( +function user_field_extra_fields() { + $return['user']['user'] = array( + 'account' => array( 'label' => 'User name and password', 'description' => t('User module account form elements'), 'weight' => -10, - ); - $extra['timezone'] = array( + ), + 'timezone' => array( 'label' => 'Timezone', 'description' => t('User module timezone form element.'), 'weight' => 6, - ); - $extra['summary'] = array( + ), + 'summary' => array( 'label' => 'History', 'description' => t('User module history view element.'), 'weight' => 5, - ); - } + ), + ); - return $extra; + return $return; } function user_external_load($authname) { -- cgit v1.2.3