forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-67548 core_course: Add more category deletion hooks.
Introduce new hooks for plugin developers: - <component>_can_course_category_delete($category) - <component>_can_course_category_delete_move($category, $newcategory) These hooks allow plugin developers greater control over category deletion. Plugin can return false in those functions if category deletion or deletion with content move to the new parent category is not permitted. - <component>_pre_course_category_delete_move($category, $newcategory) This hook is expanding functionality of existing <component>_pre_course_category_delete hook and allow plugin developers to execute code prior to category deletion when its content is moved to another category. - <component>_get_course_category_contents($category) This hook allow plugin developers to add information that is displayed on category deletion form. Function should return string, which will be added to the list of category contents shown on the form.
- Loading branch information
Showing
4 changed files
with
89 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters