Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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.

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
return: void|null return null if we don't want to display the node.

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

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

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.