diff --git a/modules/block/block.module b/modules/block/block.module index 920090f..e9b0f6d 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -604,6 +604,19 @@ function block_form_user_profile_form_alter(&$form, &$form_state) { } /** + * Implements hook_field_extra_fields(). + */ +function block_field_extra_fields() { + $extra['user']['user']['form']['block'] = array( + 'label' => t('Personalize blocks'), + 'description' => t('Block module form element.'), + 'weight' => 3, + ); + + return $extra; +} + +/** * Implements hook_user_presave(). */ function block_user_presave(&$edit, $account, $category) { diff --git a/modules/contact/contact.module b/modules/contact/contact.module index eaae9c6..5400a1d 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -255,3 +255,16 @@ function contact_form_user_admin_settings_alter(&$form, &$form_state) { '#default_value' => variable_get('contact_default_status', 1), ); } + +/** + * 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/modules/locale/locale.module b/modules/locale/locale.module index 2037c35..d90f110 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -307,6 +307,19 @@ function locale_language_selector_form(&$form, &$form_state, $user) { } /** + * Implements hook_field_extra_fields(). + */ +function locale_field_extra_fields() { + $extra['user']['user']['form']['locale'] = array( + 'label' => t('Language settings'), + 'description' => t('Locale module form element.'), + 'weight' => 1, + ); + + return $extra; +} + +/** * Implements hook_form_FORM_ID_alter(). */ function locale_form_node_type_form_alter(&$form, &$form_state) { diff --git a/modules/overlay/overlay.module b/modules/overlay/overlay.module index 6e137b7..1e63678 100644 --- a/modules/overlay/overlay.module +++ b/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(&$edit, $account, $category) { diff --git a/modules/user/user.module b/modules/user/user.module index a73995f..a1b2c50 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -230,6 +230,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; }