summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user')
-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) {