From 02542c2ed4a16272ef30dff4790292d2974fc6d3 Mon Sep 17 00:00:00 2001 From: meirzamoodle Date: Tue, 13 Jan 2026 20:48:18 +0700 Subject: [PATCH] MDL-87425 core: Remove the deprecated code --- .upgradenotes/MDL-87425-2025123010293153.yml | 7 +++++++ .../content/moodle/components/activityicons.md | 2 -- public/lib/moodlelib.php | 6 ------ 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 .upgradenotes/MDL-87425-2025123010293153.yml diff --git a/.upgradenotes/MDL-87425-2025123010293153.yml b/.upgradenotes/MDL-87425-2025123010293153.yml new file mode 100644 index 00000000000..7f1fa70455f --- /dev/null +++ b/.upgradenotes/MDL-87425-2025123010293153.yml @@ -0,0 +1,7 @@ +issueNumber: MDL-87425 +notes: + core: + - message: >- + The `MOD_PURPOSE_INTERFACE` constant has been removed from + `public/lib/moodlelib.php`. + type: removed diff --git a/public/admin/tool/componentlibrary/content/moodle/components/activityicons.md b/public/admin/tool/componentlibrary/content/moodle/components/activityicons.md index 394f1c75af4..1641712c723 100644 --- a/public/admin/tool/componentlibrary/content/moodle/components/activityicons.md +++ b/public/admin/tool/componentlibrary/content/moodle/components/activityicons.md @@ -127,8 +127,6 @@ Since Moodle 4.4, the available activity purposes are: * Resource (MOD_PURPOSE_CONTENT) * Other (MOD_PURPOSE_OTHER) -> NOTE: On Moodle 4.3 downwards, MOD_PURPOSE_INTERFACE was also available, but it has been deprecated, so it's not recommended to use it. - ### Purpose colours The activity icon colours can be customised using the theme Boost 'Raw initial SCSS' feature. The following variables are available: diff --git a/public/lib/moodlelib.php b/public/lib/moodlelib.php index 58db13a5161..f8b4e8ec23f 100644 --- a/public/lib/moodlelib.php +++ b/public/lib/moodlelib.php @@ -500,12 +500,6 @@ define('MOD_PURPOSE_CONTENT', 'content'); define('MOD_PURPOSE_INTERACTIVECONTENT', 'interactivecontent'); /** Module purpose other */ define('MOD_PURPOSE_OTHER', 'other'); -/** - * Module purpose interface - * @deprecated since Moodle 4.4 - * @todo MDL-80701 Remove in Moodle 4.8 -*/ -define('MOD_PURPOSE_INTERFACE', 'interface'); /** True if module can be quickly created without filling a previous form. */ define('FEATURE_QUICKCREATE', 'quickcreate');