From 43b91df8ecdc5797001c0451bc3f81ca1d04766d Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 31 Oct 2013 11:58:43 +0800 Subject: [PATCH] Added new customcertelement class required in 2.6 to avoid debugging message --- classes/plugininfo/customcertelement.php | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 classes/plugininfo/customcertelement.php diff --git a/classes/plugininfo/customcertelement.php b/classes/plugininfo/customcertelement.php new file mode 100644 index 0000000..6e386d5 --- /dev/null +++ b/classes/plugininfo/customcertelement.php @@ -0,0 +1,40 @@ +. + +/** + * Subplugin info class. + * + * @package mod_customcert + * @copyright 2013 Mark Nelson + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +namespace mod_customcert\plugininfo; + +use core\plugininfo\base; + +defined('MOODLE_INTERNAL') || die(); + +class customcertelement extends base { + + /** + * Do not allow users to uninstall these plugins as it could cause customcerts to break. + * + * @return bool + */ + public function is_uninstall_allowed() { + return false; + } +}