Back to Moodle

core_enrol (subsystem / plugintype) Upgrade notes

public/enrol/UPGRADING.md

5.2.02.0 KB
Original Source

core_enrol (subsystem / plugintype) Upgrade notes

5.2

Changed

  • The external function core_enrol::get_enrolled_users() now behaves consistently with the web version; returning the basic user information even if the current user does not have permission to view the full details.

    For more information see MDL-87242

Removed

    • The \enrol_plugin::update_communication() has been removed from public/lib/enrollib.php.

    For more information see MDL-87425

5.0

Added

  • New method enrol_plugin::get_instance_name_for_management_page() can be used to display additional details next to the instance name.

    For more information see MDL-84139

  • Plugins implementing enrol_page_hook() method are encouraged to use the renderable \core_enrol\output\enrol_page to produce HTML for the enrolment page. Forms should be displayed in a modal dialogue. See enrol_self plugin as an example.

    For more information see MDL-84142

  • It's now possible for themes to override the course enrolment index page by overriding the new course renderer enrolment_options method

    For more information see MDL-84143

Changed

  • The after_user_enrolled hook now contains a roleid property to allow for listeners to determine which role was assigned during user enrolment (if any)

    The base enrolment enrol_plugin::send_course_welcome_message_to_user method also now accepts a $roleid parameter in order to correctly populate the courserole placeholder

    For more information see MDL-83432

Removed

  • Final removal of base enrol_plugin class method update_communication

    For more information see MDL-80491

  • Removed enrol_mnet plugin from core

    For more information see MDL-84310