MDL-85436 lib: Deprecate unused icons
This commit is contained in:
@@ -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
|
||||
@@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -99,11 +99,6 @@
|
||||
{{#agreement}}
|
||||
<tr {{^isfirst}}class="archived{{policyid}}" style="display:none"{{/isfirst}}>
|
||||
<td>
|
||||
{{^isfirst}}
|
||||
<div style="float:left">
|
||||
{{#pix}} level, tool_policy {{/pix}}
|
||||
</div>
|
||||
{{/isfirst}}
|
||||
<div {{^isfirst}}style="margin-left: 24px" {{/isfirst}}>
|
||||
<div><a href="{{viewurl}}">{{{name}}}</a></div>
|
||||
</div>
|
||||
|
||||
@@ -99,11 +99,6 @@
|
||||
{{#versions}}
|
||||
<tr data-policy-name="{{{name}}}" data-policy-revision="{{revision}}">
|
||||
<td>
|
||||
{{#indented}}
|
||||
<div style="float:left">
|
||||
{{#pix}} level, tool_policy {{/pix}}
|
||||
</div>
|
||||
{{/indented}}
|
||||
<div {{#indented}}style="margin-left: 24px" {{/indented}}>
|
||||
<div>{{{name}}}</div>
|
||||
<div class="text-muted, muted"><small>{{{typetext}}}, {{{audiencetext}}}, {{{optionaltext}}}</small></div>
|
||||
|
||||
@@ -522,6 +522,12 @@ class icon_system_fontawesome extends icon_system_font {
|
||||
'theme:mod/quiz/flag-on',
|
||||
'theme:mod/quiz/warningtriangle',
|
||||
'theme:mod/quiz/whitecircle',
|
||||
// Deprecated since Moodle 5.1.
|
||||
'core:e/insert_col_after',
|
||||
'core:e/insert_col_before',
|
||||
'core:e/split_cells',
|
||||
'core:e/text_color',
|
||||
'core:t/locktime',
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user