MDL-72781 tool_usertours: Disable activity completion user tours
This commit is contained in:
@@ -862,10 +862,6 @@ class manager {
|
||||
// the format filename => version. The version value needs to
|
||||
// be increased if the tour has been updated.
|
||||
$shippedtours = [
|
||||
'311_activity_information_activity_page_student.json' => 2,
|
||||
'311_activity_information_activity_page_teacher.json' => 2,
|
||||
'311_activity_information_course_page_student.json' => 2,
|
||||
'311_activity_information_course_page_teacher.json' => 2
|
||||
];
|
||||
|
||||
// These are tours that we used to ship but don't ship any longer.
|
||||
@@ -878,6 +874,12 @@ class manager {
|
||||
// Formerly included in Moodle 3.6.0.
|
||||
'36_dashboard.json' => 3,
|
||||
'36_messaging.json' => 3,
|
||||
|
||||
// Formerly included in Moodle 3.11.0.
|
||||
'311_activity_information_activity_page_student.json' => 2,
|
||||
'311_activity_information_activity_page_teacher.json' => 2,
|
||||
'311_activity_information_course_page_student.json' => 2,
|
||||
'311_activity_information_course_page_teacher.json' => 2,
|
||||
];
|
||||
|
||||
$existingtourrecords = $DB->get_recordset('tool_usertours_tours');
|
||||
|
||||
@@ -47,13 +47,6 @@ function xmldb_tool_usertours_upgrade($oldversion) {
|
||||
// Automatically generated Moodle v3.8.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
if ($oldversion < 2020061501) {
|
||||
// Updating shipped tours will fix broken sortorder records in existing tours.
|
||||
manager::update_shipped_tours();
|
||||
|
||||
upgrade_plugin_savepoint(true, 2020061501, 'tool', 'usertours');
|
||||
}
|
||||
|
||||
// Automatically generated Moodle v3.9.0 release upgrade line.
|
||||
// Put any upgrade step following this.
|
||||
|
||||
@@ -78,13 +71,6 @@ function xmldb_tool_usertours_upgrade($oldversion) {
|
||||
upgrade_plugin_savepoint(true, 2021052501, 'tool', 'usertours');
|
||||
}
|
||||
|
||||
if ($oldversion < 2021052508) {
|
||||
// Updating shipped tours.
|
||||
manager::update_shipped_tours();
|
||||
|
||||
upgrade_plugin_savepoint(true, 2021052508, 'tool', 'usertours');
|
||||
}
|
||||
|
||||
if ($oldversion < 2021092300) {
|
||||
// Define field endtourlabel to be added to tool_usertours_tours.
|
||||
$table = new xmldb_table('tool_usertours_tours');
|
||||
@@ -128,5 +114,12 @@ function xmldb_tool_usertours_upgrade($oldversion) {
|
||||
upgrade_plugin_savepoint(true, 2021101300, 'tool', 'usertours');
|
||||
}
|
||||
|
||||
if ($oldversion < 2021101301) {
|
||||
// Update shipped tours.
|
||||
manager::update_shipped_tours();
|
||||
|
||||
upgrade_plugin_savepoint(true, 2021101301, 'tool', 'usertours');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2021101300; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2021101301; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2021052500; // Requires this Moodle version.
|
||||
$plugin->component = 'tool_usertours'; // Full name of the plugin (used for diagnostics).
|
||||
|
||||
Reference in New Issue
Block a user