1 This files describes API changes in /admin/*.
5 * Grade item setting "Advanced grade item options" (grade_item_advanced) is no longer used and has been removed.
6 * Grade category settings no longer have the "Advanced" checkbox. The 'advanced' parameter has been removed.
10 * Removed admin setting cookiehttponly Moodle now defaults to HTTP only cookies for new installs only.
11 Existing sites will not be affected by this change. The setting can be changed in config.php if required.
12 To enable for upgraded sites set: $CFG->cookiehttponly = true;
13 To disable for new sites set: $CFG->cookiehttponly = false;
15 Existing cookies will not be affected by this change, until they are expired or deleted.
17 * Theme setting "Enable device detection" (enabledevicedetection) and related to it has been removed.
18 * Theme setting "Device detection regular expressions" (devicedetectregex) and related to it has been removed.
19 * Class adminpresets_admin_setting_devicedetectregex has been deprecated.
20 * The admin_setting_devicedetectregex class has been deprecated.
24 * A new admin setting coursecreationguide allows admins to configure the URL of the Quickstart guide for admins and managers.
28 * A new admin setting supportavailability allows admins to configure who the "contact site support" feature is available to
29 (everyone, authenticated users, or nobody).
30 -For new sites and those upgrading from 3.11.x or older, the default will be "Limited to authenticated users".
31 -For sites upgrading from 4.0.x, the default will be "available to anyone visiting the site", to main consistent behaviour through the upgrade.
35 * A new callback xxx_pre_enable_plugin_actions has been added in admin/modules.php. Plugins can use this callback to
36 force additional actions (e.g. displaying notifications, modals, etc.) before enabling the plugin. The expected
37 return value (bool) from the plugin callback method specifies whether the process of enabling the plugin should
38 continue after the added actions or not.
42 * New admin setting admin_setting_encryptedpassword allows passwords in admin settings to be
43 encrypted (with the new \core\encryption API) so that even the admin cannot read them.
44 * Web services administration has been moved from Plugins into the Server category. If you have
45 Behat tests containing steps like `Given I navigate to "Plugins > Web services > ..."`, you will
46 want to replace them with `Given I navigate to "Server > Web services > ..."`.
50 * The following functions, previously used (exclusively) by upgrade steps are not available anymore because of the upgrade cleanup performed for this version. See MDL-65809 for more info:
51 - upgrade_fix_block_instance_configuration()
52 - upgrade_theme_is_from_family()
53 - upgrade_find_theme_location()
54 - linkcoursesectionsupgradescriptwasrun setting
55 - upgrade_block_positions()
59 * Admin setting "Open to Google" (opentogoogle) has been renamed to the more generic "Open to search engines" (opentowebcrawlers).
60 This is a more accurate representation of what is being set and the config string has also been moved and updated to reflect this.
64 * Admin setting "Allow blocks to use the dock" (allowblockstodock) has been removed & stings deprecated.
65 Docking of blocks is no longer supported within the core themes (Boost, Classic).
66 Please see MDL-64506 for further details.
70 * The admin settings admin_setting_configselect and admin_setting_configmultiselect now support the optgroup tag.
71 Grouping of options can be created with this new tag.
72 For using it, the option parameters needs the Group names as indexes:
74 "Spain" => ["madrid" => "Madrid", "barcelona" => "Barcelona"],
75 "France" => ["paris" => "Paris", "marseille" => "Marseille"],
80 * Admin settings have been refined to better support right-to-left languages. In RTL,
81 most fields should not have their direction flipped, a URL, a path to a file, ...
82 are always displayed LTR. The admin setting will now best guess if they should be
83 RTLized based on their PARAM_* type. To override that guess, use
84 admin_setting::set_force_ltr(true/false).