From 9c5c778c525a69ed0ad0f0679c00860d8737ce15 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 19 Oct 2017 07:04:14 +0400 Subject: Initial commit --- db/events.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 db/events.php (limited to 'db') diff --git a/db/events.php b/db/events.php new file mode 100644 index 0000000..809ed43 --- /dev/null +++ b/db/events.php @@ -0,0 +1,36 @@ +. + +/** + * Interception of all events in the system. + * + * @package local_webhooks + * @copyright 2017 "Valentin Popov" + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); + +$config = get_config('local_webhooks'); +$observers = array( + array( + 'eventname' => '*', + 'callback' => '\local_webhooks\events::handler', + 'includefile' => null, + 'priority' => 200, + 'internal' => true + ) +); \ No newline at end of file -- cgit v1.2.3