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

Dispatch event for course module moved

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.11.2
    • None
    • Events API
    • None
    • MOODLE_311_STABLE

    Description

      Today, Moodle has a very mature Events system that allows other parts of the system to react on a change in a specific context.

      One of this events is the \core\event\course_module_updated

      This event is dispatched when any mod is changed by the edit page. Also it is dispatched when the inline name is changed, but not when the resource is moved for a different position inside the course.

      Should this be considered as a mod changed? If so, would it be intresting to dispatch the event on this case? Or for being specificly a move event, a new event could be created with the moved verb?

       

      So... The propose of this issue is to dispatch eather a \core\event\course_module_updated or a hipotetical \core\event\course_module_moved event when a resource is moved using AJAX.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ahwelp Artur Welp
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: