summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-02 15:00:34 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-02 15:00:34 +0000
commitb12d812b9397609a5853d8c2b73f29d282496fd9 (patch)
treecf6de6724ccba65a56aa3d73f6bf554ccc3c0313 /modules/user/user.module
parent89028a43bbbaf73e6aa1e8e00bc12d46d1fc7119 (diff)
downloadbrdo-b12d812b9397609a5853d8c2b73f29d282496fd9.tar.gz
brdo-b12d812b9397609a5853d8c2b73f29d282496fd9.tar.bz2
- Patch #665878 by yched: fixed field_extra_fields()
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module22
1 files changed, 10 insertions, 12 deletions
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) {