aboutsummaryrefslogtreecommitdiff
path: root/db/events.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-25 08:25:02 +0300
committerValentin Popov <info@valentineus.link>2017-10-25 08:25:02 +0300
commitd235d49dc6214ff916f0f5177d27a0cdd4685ec3 (patch)
tree7bfb3bd3917a0408b108f17675744c770d7ce53d /db/events.php
parentd3c79af8cfdae4a07cc09e50e408735f037e8991 (diff)
downloadlocal_webhooks-d235d49dc6214ff916f0f5177d27a0cdd4685ec3.tar.xz
local_webhooks-d235d49dc6214ff916f0f5177d27a0cdd4685ec3.zip
Refactor the observer for events
Diffstat (limited to 'db/events.php')
-rw-r--r--db/events.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/db/events.php b/db/events.php
index 809ed43..d061b21 100644
--- a/db/events.php
+++ b/db/events.php
@@ -22,15 +22,14 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die();
+defined("MOODLE_INTERNAL") || die();
-$config = get_config('local_webhooks');
$observers = array(
array(
- 'eventname' => '*',
- 'callback' => '\local_webhooks\events::handler',
- 'includefile' => null,
- 'priority' => 200,
- 'internal' => true
+ "eventname" => "*",
+ "callback" => "\local_webhooks\\events::handler",
+ "includefile" => null,
+ "priority" => 200,
+ "internal" => true
)
); \ No newline at end of file