From 9c7274e25f7c02cfa3d206513696cecd1e507119 Mon Sep 17 00:00:00 2001
From: Andrew Nicols <andrew@nicols.co.uk>
Date: Thu, 11 Sep 2014 08:46:52 +0800
Subject: [PATCH] MDL-47206 core: Allow tool plugins to run tasks

This issue is a part of the MDL-47194 Task.
This issue is a part of the MDL-39707 Epic.
---
 lib/classes/plugininfo/tool.php | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/classes/plugininfo/tool.php b/lib/classes/plugininfo/tool.php
index d4e24ba7b71..cc6ab3c5ad6 100644
--- a/lib/classes/plugininfo/tool.php
+++ b/lib/classes/plugininfo/tool.php
@@ -36,6 +36,15 @@ class tool extends base {
         return true;
     }
 
+    /**
+     * Tools cannot be disabled.
+     *
+     * @return boolean
+     */
+    public function is_enabled() {
+        return true;
+    }
+
     /**
      * Return URL used for management of plugins of this type.
      * @return moodle_url