From 9793a44bad2de6bc49c6c7eb55b1d5635d09135b Mon Sep 17 00:00:00 2001 From: Michael Milette Date: Sat, 14 Dec 2024 17:35:43 -0500 Subject: [PATCH] New show/hide first & last phonetic + alternate names in profile settings. --- lib.php | 4 ++++ settings/profile_settings.php | 5 +++++ version.php | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 0e0046b..d587a0b 100644 --- a/lib.php +++ b/lib.php @@ -153,6 +153,10 @@ function theme_trema_get_pre_scss($theme) { // Section: Additional Names. $fields['showprofileadditionalnames'] = '#id_moodle_additional_names'; + $fields['showprofilefirstnamephonetic'] = '#fitem_id_firstnamephonetic'; + $fields['showprofilelastnamephonetic'] = '#fitem_id_lastnamephonetic'; + $fields['showprofilemiddlename'] = '#fitem_id_middlename'; + $fields['showprofilealternatename'] = '#fitem_id_alternatename'; // Section: Interests. $fields['showprofileinterests'] = '#id_moodle_interests'; diff --git a/settings/profile_settings.php b/settings/profile_settings.php index 9caa456..4018115 100644 --- a/settings/profile_settings.php +++ b/settings/profile_settings.php @@ -35,6 +35,7 @@ $profilefieldsections = ['pictureofuser', 'additionalnames', 'interests', 'optional']; // List of user profile fields that we can show or hide. +$profilefields = []; $profilefields[] = 'emaildisplay'; $profilefields[] = 'moodlenetprofile'; $profilefields[] = 'city'; @@ -45,6 +46,10 @@ $profilefields[] = 'pictureofuser'; // Additional Names section. $profilefields[] = 'additionalnames'; +$profilefields[] = 'firstnamephonetic'; +$profilefields[] = 'lastnamephonetic'; +$profilefields[] = 'middlename'; +$profilefields[] = 'alternatename'; // Interests section. $profilefields[] = 'interests'; // Optional section. diff --git a/version.php b/version.php index dced55e..47f78bc 100644 --- a/version.php +++ b/version.php @@ -28,7 +28,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024121200; +$plugin->version = 2024121201; $plugin->release = '4.5.0.4'; $plugin->maturity = MATURITY_STABLE; $plugin->requires = 2022021800; // Moodle 4.0 - Build: 20220218.