Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Local lib code

Copyright: 2015 Skylar Kelty <S.Kelty@kent.ac.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 208 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions


Functions that are not part of a class:

tool_recyclebin_extend_navigation_course($navigation, $course, $context)   X-Ref
Adds a recycle bin link to the course admin menu.

return: void|null return null if we don't want to display the node.
param: navigation_node $navigation The navigation node to extend
param: stdClass $course The course to object for the tool
param: context $context The context of the course

tool_recyclebin_extend_navigation_category_settings($navigation, $context)   X-Ref
Adds a recycle bin link to the course admin menu.

return: void|null return null if we don't want to display the node.
param: navigation_node $navigation The navigation node to extend
param: context $context The context of the course

tool_recyclebin_pre_course_module_delete($cm)   X-Ref
Hook called before we delete a course module.

param: \stdClass $cm The course module record.

tool_recyclebin_course_module_background_deletion_recommended()   X-Ref
Hook called to check whether async course module deletion should be performed or not.

return: true if background deletion is required (is the recyclebin is enabled), false otherwise.

tool_recyclebin_pre_course_delete($course)   X-Ref
Hook called before we delete a course.

param: \stdClass $course The course record.

tool_recyclebin_pre_course_category_delete($category)   X-Ref
Hook called before we delete a category.

param: \stdClass $category The category record.

tool_recyclebin_get_fontawesome_icon_map()   X-Ref
Map icons for font-awesome themes.