diff --git a/core/modules/contact/contact.module b/core/modules/contact/contact.module index 1ba70b9..1b15cb1 100644 --- a/core/modules/contact/contact.module +++ b/core/modules/contact/contact.module @@ -270,3 +270,16 @@ function contact_form_user_admin_settings_submit($form, &$form_state) { ->set('user_default_enabled', $form_state['values']['contact_default_status']) ->save(); } + +/** + * Implements hook_field_extra_fields(). + */ +function contact_field_extra_fields() { + $extra['user']['user']['form']['contact'] = array( + 'label' => t('Contact'), + 'description' => t('Contact module form element.'), + 'weight' => 5, + ); + + return $extra; +} \ No newline at end of file diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index 3aaed7d..1803033 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -103,6 +103,19 @@ function overlay_form_user_profile_form_alter(&$form, &$form_state) { } /** + * Implements hook_field_extra_fields(). + */ +function overlay_field_extra_fields() { + $extra['user']['user']['form']['overlay_control'] = array( + 'label' => t('Administrative overlay'), + 'description' => t('Overlay module form element.'), + 'weight' => 4, + ); + + return $extra; +} + +/** * Implements hook_user_presave(). */ function overlay_user_presave($account) { diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 44cb266..757f14e 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -248,6 +248,26 @@ function user_field_extra_fields() { ), ); + if (variable_get('user_pictures', 1) == 1) { + $return['user']['user']['form'] += array( + 'picture' => array( + 'label' => 'User picture', + 'description' => t('User module picture form element.'), + 'weight' => 2, + ), + ); + } + + if (variable_get('user_signatures', 1) == 1) { + $return['user']['user']['form'] += array( + 'signature_settings' => array( + 'label' => 'User signature', + 'description' => t('User module signature form element.'), + 'weight' => 1, + ), + ); + } + return $return; }