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

Add course delete hook for course formats

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9
    • Fix Version/s: 1.9.4
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      There is a flag lib/moodlelib.php:function remove_course_contents() to hide feedback. Regardless of this setting, the course formats always print notifications. Attached is a patch to fix this problem. While I was writing the patch, I switched the code over to use get_list_of_plugins() instead of reading the course/format directory, but the primary goal of this ticket is really to wrap the notify with if ($showfeedback) {}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              bushido Mark Nielsen
              Tester:
              Tim Hunt Tim Hunt
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Jan/09