diff --git a/.upgradenotes/MDL-85436-2025061603213110.yml b/.upgradenotes/MDL-85436-2025061603213110.yml new file mode 100644 index 00000000000..2ce2d84261e --- /dev/null +++ b/.upgradenotes/MDL-85436-2025061603213110.yml @@ -0,0 +1,12 @@ +issueNumber: MDL-85436 +notes: + theme: + - message: >- + These icons are no longer in use and have been deprecated: + - core:e/insert_col_after + - core:e/insert_col_before + - core:e/split_cells + - core:e/text_color + - core:t/locktime + - tool_policy/level + type: deprecated diff --git a/admin/tool/policy/lib.php b/admin/tool/policy/lib.php index d4995418cfc..9349896f7ee 100644 --- a/admin/tool/policy/lib.php +++ b/admin/tool/policy/lib.php @@ -187,3 +187,16 @@ function tool_policy_output_fragment_accept_on_behalf($args) { return $mform->render(); } + +/** + * Get the list of deprecated icons. + * + * @return array with the deprecated key icons. + * @todo Final deprecation on Moodle 6.0 MDL-83465. + */ +function tool_policy_get_deprecated_icons(): array { + return [ + // Deprecated since Moodle 5.1. + 'tool_policy/level', + ]; +} diff --git a/admin/tool/policy/templates/acceptances.mustache b/admin/tool/policy/templates/acceptances.mustache index 3183bfcc7ce..ae604bab0e8 100644 --- a/admin/tool/policy/templates/acceptances.mustache +++ b/admin/tool/policy/templates/acceptances.mustache @@ -99,11 +99,6 @@ {{#agreement}}