diff options
author | Valentin Popov <info@valentineus.link> | 2017-10-25 08:25:02 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-10-25 08:25:02 +0300 |
commit | d235d49dc6214ff916f0f5177d27a0cdd4685ec3 (patch) | |
tree | 7bfb3bd3917a0408b108f17675744c770d7ce53d /db/events.php | |
parent | d3c79af8cfdae4a07cc09e50e408735f037e8991 (diff) | |
download | local_webhooks-d235d49dc6214ff916f0f5177d27a0cdd4685ec3.tar.xz local_webhooks-d235d49dc6214ff916f0f5177d27a0cdd4685ec3.zip |
Refactor the observer for events
Diffstat (limited to 'db/events.php')
-rw-r--r-- | db/events.php | 13 |
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 |