From a9ad3002e1eb18d2189f242b4d26ee64d2f09f1e Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 10 May 2016 15:24:09 +0800 Subject: [PATCH] MDL-54102 core: added more details about hooks --- lib/upgrade.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/upgrade.txt b/lib/upgrade.txt index ca20534ee8d..11c535c1dbc 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -120,12 +120,14 @@ information provided here is intended especially for developers. * flexible_table::get_download_menu(), considered private, has been deleted. Use $OUTPUT->download_dataformat_selector() instead. * Introduced new hooks for plugin developers. - * pre_course_category_delete($category) - * pre_course_delete($course) - * pre_course_module_delete($cm) - * pre_block_delete($instance) - * pre_user_delete($user) - These hooks allow developers to use the item in question before it is deleted by core. + - _pre_course_category_delete($category) + - _pre_course_delete($course) + - _pre_course_module_delete($cm) + - _pre_block_delete($instance) + - _pre_user_delete($user) + These hooks allow developers to use the item in question before it is deleted by core. For example, if your plugin is + a module (plugins located in the mod folder) called 'xxx' and you wish to interact with the user object before it is + deleted then the function to create would be mod_xxx_pre_user_delete($user) in mod/xxx/lib.php. === 3.0 ===