Author: Ruslan Kabalin
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.
http://git.moodle.org/gw?p=moodle.git;a=commit;h=72316a9f4eaf33ed5cbdacc79a4cb53971e74bc1
http://github.com/moodle/moodle/commit/72316a9f4eaf33ed5cbdacc79a4cb53971e74bc1
+ 3.9 en [movecatcontentstoselected,core_error]