Skip to content

Commit

Permalink
New show/hide first & last phonetic + alternate names in profile sett…
Browse files Browse the repository at this point in the history
…ings.
  • Loading branch information
michael-milette committed Dec 14, 2024
1 parent 08e350f commit 9793a44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 5 additions & 0 deletions settings/profile_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9793a44

Please sign in to comment.