Moodle

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

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • 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.

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.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated: