<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Edwiser RemUI
 *
 * @package   theme_remui
 * @copyright (c) 2023 WisdmLabs (https://wisdmlabs.com/) <support@wisdmlabs.com>
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

defined('MOODLE_INTERNAL') || die;

$observers = array(
    array(
        'eventname'   => '\core\event\user_enrolment_created',
        'callback'    => 'theme_remui\controller\EventsController::user_enrollment_event',
    ),
    array(
        'eventname'   => '\core\event\user_enrolment_deleted',
        'callback'    => 'theme_remui\controller\EventsController::user_enrollment_event',
    ),
    array(
        'eventname'   => '\core\event\course_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\role_assigned',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\role_unassigned',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\role_capabilities_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\capability_assigned',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\capability_unassigned',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\user_loggedin',
        'callback'    => 'theme_remui\controller\EventsController::user_loggedin_event',
    ),
    array(
        'eventname'   => '\core\event\course_module_created',
        'callback'    => 'theme_remui\controller\EventsController::updation_on_create_delete_activity',
    ),
    array(
        'eventname'   => '\core\event\course_module_deleted',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\course_module_updated',
        'callback'    => 'theme_remui\controller\EventsController::updation_on_create_delete_activity',
    ),
    array(
        'eventname'   => '\core\event\course_module_completion_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\completion_defaults_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\course_completion_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\course_started',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\course_deleted',
        'callback'    => 'theme_remui\controller\EventsController::course_deletion_event',
    ),
    array(
        'eventname'   => '\mod_assign\event\assessable_submitted',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\course_completed',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core\event\group_updated',
        'callback'    => 'theme_remui\controller\EventsController::course_updation_event',
    ),
    array(
        'eventname'   => '\core_customfield\event\field_updated',
        'callback'    => 'theme_remui\controller\EventsController::customfield_updated',
    )
);
