Moodle
  1. Moodle
  2. MDL-16203

Fire events when a module is added to or deleted from a course, or updated

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: None
    • Component/s: Events API
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      These are certainly events that people will want to know about. (I had an application that could have used them at the OU.)

      While we are at it, wouldn't it be nice to refactor the code in course/modedit.php that does the actual module updating or adding into functions.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Oleg Sychev added a comment -

            Addding these events would certainly be a good thing. I'm looking for the way of implementing interface to link cm's options so that you can manage options of several similar activities from one place (quite useful in many big courses), but it's hard to do without events on update/delete cm's.

            Show
            Oleg Sychev added a comment - Addding these events would certainly be a good thing. I'm looking for the way of implementing interface to link cm's options so that you can manage options of several similar activities from one place (quite useful in many big courses), but it's hard to do without events on update/delete cm's.
            Hide
            Dan Marsden added a comment -

            I've added these in Head - anyone want this backported to stable?

            Show
            Dan Marsden added a comment - I've added these in Head - anyone want this backported to stable?
            Hide
            Martin Dougiamas added a comment -

            I updated these to make them more generic mod_created, mod_updated and mod_deleted. Handlers can look at "modulename" in the event data to handle specific types of modules.

            Show
            Martin Dougiamas added a comment - I updated these to make them more generic mod_created, mod_updated and mod_deleted. Handlers can look at "modulename" in the event data to handle specific types of modules.
            Hide
            Marina Glancy added a comment -

            wow, that's an old one. Has been fixed long time ago and improved during Events API refactoring in 2.6 and 2.7

            Show
            Marina Glancy added a comment - wow, that's an old one. Has been fixed long time ago and improved during Events API refactoring in 2.6 and 2.7

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: