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() {
'weight' => 0,
);
}
$fields['user']['user']['form']['contact'] = array(
'label' => t('Contact settings'),
'description' => t('Contact module form element.'),
'weight' => 5,
);
return $fields;
}
......
......@@ -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().
*/
......
......@@ -235,29 +235,38 @@ function user_field_info_alter(&$info) {
* Implements hook_field_extra_fields().
*/
function user_field_extra_fields() {
$return['user']['user'] = array(
'form' => array(
'account' => array(
'label' => t('User name and password'),
'description' => t('User module account form elements.'),
'weight' => -10,
),
'timezone' => array(
'label' => t('Timezone'),
'description' => t('User module timezone form element.'),
'weight' => 6,
),
),
'display' => array(
'member_for' => array(
'label' => t('Member for'),
'description' => t('User module \'member for\' view element.'),
'weight' => 5,
),
),
$fields['user']['user']['form']['account'] = array(
'label' => t('User name and password'),
'description' => t('User module account form elements.'),
'weight' => -10,
);
if (config('user.settings')->get('signatures')) {
$fields['user']['user']['form']['signature_settings'] = array(
'label' => t('Signature settings'),
'description' => t('User module form element.'),
'weight' => 1,
);
}
$fields['user']['user']['form']['language'] = array(
'label' => t('Language settings'),
'description' => t('User module form element.'),
'weight' => 0,
);
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