Commit dc3466b5 authored by Dries's avatar Dries

Issue #967566 by Letharion, mariusz.slonina, indytechcook, adnasa, joestewart,...

Issue #967566 by Letharion, mariusz.slonina, indytechcook, adnasa, joestewart, oriol_e9g, Fabianx, tim.plunkett, valthebald, tsvenson, rbayliss, sun, xjm | DocuAnt: Several important Core User settings need to implement hook_field_extra_fields().
parent 41d4d664
...@@ -236,6 +236,12 @@ function contact_field_extra_fields() { ...@@ -236,6 +236,12 @@ function contact_field_extra_fields() {
'weight' => 0, 'weight' => 0,
); );
} }
$fields['user']['user']['form']['contact'] = array(
'label' => t('Contact settings'),
'description' => t('Contact module form element.'),
'weight' => 5,
);
return $fields; return $fields;
} }
......
...@@ -81,6 +81,18 @@ function overlay_theme() { ...@@ -81,6 +81,18 @@ function overlay_theme() {
); );
} }
/**
* Implements hook_field_extra_fields().
*/
function overlay_field_extra_fields() {
$fields['user']['user']['form']['overlay_control'] = array(
'label' => t('Administrative overlay'),
'description' => t('Overlay module form element.'),
'weight' => 4,
);
return $fields;
}
/** /**
* Implements hook_form_FORM_ID_alter(). * Implements hook_form_FORM_ID_alter().
*/ */
......
...@@ -235,29 +235,38 @@ function user_field_info_alter(&$info) { ...@@ -235,29 +235,38 @@ function user_field_info_alter(&$info) {
* Implements hook_field_extra_fields(). * Implements hook_field_extra_fields().
*/ */
function user_field_extra_fields() { function user_field_extra_fields() {
$return['user']['user'] = array( $fields['user']['user']['form']['account'] = array(
'form' => array( 'label' => t('User name and password'),
'account' => array( 'description' => t('User module account form elements.'),
'label' => t('User name and password'), 'weight' => -10,
'description' => t('User module account form elements.'), );
'weight' => -10, if (config('user.settings')->get('signatures')) {
), $fields['user']['user']['form']['signature_settings'] = array(
'timezone' => array( 'label' => t('Signature settings'),
'label' => t('Timezone'), 'description' => t('User module form element.'),
'description' => t('User module timezone form element.'), 'weight' => 1,
'weight' => 6, );
), }
), $fields['user']['user']['form']['language'] = array(
'display' => array( 'label' => t('Language settings'),
'member_for' => array( 'description' => t('User module form element.'),
'label' => t('Member for'), 'weight' => 0,
'description' => t('User module \'member for\' view element.'), );
'weight' => 5, if (config('system.timezone')->get('user.configurable')) {
), $fields['user']['user']['form']['timezone'] = array(
), 'label' => t('Timezone'),
'description' => t('System module form element.'),
'weight' => 6,
);
}
$fields['user']['user']['display']['member_for'] = array(
'label' => t('Member for'),
'description' => t('User module \'member for\' view element.'),
'weight' => 5,
); );
return $return; return $fields;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment