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

migrate pre_course_category_delete callback to hook

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.2
    • General
    • None

      The name of the hook could beĀ core\hook\course_category_delete, please note that the "pre_" prefix is not necessary any more because this type of hooks is always executed before the action.

      Example of current usage is recycle bin.

      In the future we could also add core\hook\course_category_is_deletable and core\hook\course_category_is_movable, {}these would be use useful for protection of tenant categories for example.

            Unassigned Unassigned
            skodak Petr Skoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.