Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53697

Drop support for module callback get_types() in 3.5

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.6
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      • This test requires updating code.

        Regression test

      1. Go to mod/lesson/lib.php and put the following function at the end of the file.

        function mod_lesson_get_shortcuts($defaultmodule) {
            $item = (object) [
                'title' => 'Things about lesson',
                'name' => 'New lesson item',
                'link' => new moodle_url('/mod/lesson/view.php', ['id' => 3])
            ];
            return [$defaultmodule, $item];
        }
        

      2. Go to a course and open the activity picker "Add an activity or resource"
      3. There should now be a new item under "Activities" with the same icon as the lesson called "Things about lesson".
      Show
      This test requires updating code. Regression test Go to mod/lesson/lib.php and put the following function at the end of the file. function mod_lesson_get_shortcuts($defaultmodule) { $item = (object) [ 'title' => 'Things about lesson', 'name' => 'New lesson item', 'link' => new moodle_url('/mod/lesson/view.php', ['id' => 3]) ]; return [$defaultmodule, $item]; } Go to a course and open the activity picker "Add an activity or resource" There should now be a new item under "Activities" with the same icon as the lesson called "Things about lesson".
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53697-master

      Description

      Deprecated under MDL-45064 in Moodle 3.1
      Also drop support for similar ltisource callback.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18