Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 * Hook listener callbacks.
19
 *
20
 * @package    core
21
 * @copyright  2023 Safat Shahin <safat.shahin@moodle.com>
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
 
27
$callbacks = [
28
    [
29
        'hook' => \core_group\hook\after_group_created::class,
30
        'callback' => \core_communication\hook_listener::class . '::create_group_communication',
31
    ],
32
    [
33
        'hook' => \core_group\hook\after_group_updated::class,
34
        'callback' => \core_communication\hook_listener::class . '::update_group_communication',
35
    ],
36
    [
37
        'hook' => \core_group\hook\after_group_deleted::class,
38
        'callback' => \core_communication\hook_listener::class . '::delete_group_communication',
39
    ],
40
    [
41
        'hook' => \core_group\hook\after_group_membership_added::class,
42
        'callback' => \core_communication\hook_listener::class . '::add_members_to_group_room',
43
    ],
44
    [
45
        'hook' => \core_group\hook\after_group_membership_removed::class,
46
        'callback' => \core_communication\hook_listener::class . '::remove_members_from_group_room',
47
    ],
48
    [
1441 ariadna 49
        'hook' => \core_group\hook\after_group_membership_added::class,
50
        'callback' => \core_courseformat\hook_listener::class . '::add_members_to_group',
51
    ],
52
    [
53
        'hook' => \core_group\hook\after_group_membership_removed::class,
54
        'callback' => \core_courseformat\hook_listener::class . '::remove_members_from_group',
55
    ],
56
    [
57
        'hook' => \core_courseformat\hook\after_course_content_updated::class,
58
        'callback' => \core_courseformat\hook_listener::class . '::course_content_updated',
59
    ],
60
    [
61
        'hook' => core\hook\access\after_role_switched::class,
62
        'callback' => \core_courseformat\hook_listener::class . '::after_role_switched',
63
    ],
64
    [
65
        'hook' => \core_completion\hook\after_cm_completion_updated::class,
66
        'callback' => \core_courseformat\hook_listener::class . '::after_cm_completion_updated',
67
    ],
68
    [
1 efrain 69
        'hook' => \core_course\hook\after_course_created::class,
70
        'callback' => \core_communication\hook_listener::class . '::create_course_communication',
71
    ],
72
    [
73
        'hook' => \core_course\hook\after_course_updated::class,
74
        'callback' => \core_communication\hook_listener::class . '::update_course_communication',
75
    ],
76
    [
77
        'hook' => \core_course\hook\before_course_deleted::class,
78
        'callback' => \core_communication\hook_listener::class . '::delete_course_communication',
79
    ],
80
    [
81
        'hook' => \core_user\hook\before_user_updated::class,
82
        'callback' => \core_communication\hook_listener::class . '::update_user_room_memberships',
83
    ],
84
    [
85
        'hook' => \core_user\hook\before_user_deleted::class,
86
        'callback' => \core_communication\hook_listener::class . '::delete_user_room_memberships',
87
    ],
88
    [
89
        'hook' => \core\hook\access\after_role_assigned::class,
90
        'callback' => \core_communication\hook_listener::class . '::update_user_membership_for_role_changes',
91
    ],
92
    [
93
        'hook' => \core\hook\access\after_role_unassigned::class,
94
        'callback' => \core_communication\hook_listener::class . '::update_user_membership_for_role_changes',
95
    ],
96
    [
97
        'hook' => \core_enrol\hook\after_enrol_instance_status_updated::class,
98
        'callback' => \core_communication\hook_listener::class . '::update_communication_memberships_for_enrol_status_change',
99
    ],
100
    [
101
        'hook' => \core_enrol\hook\before_enrol_instance_deleted::class,
102
        'callback' => \core_communication\hook_listener::class . '::remove_communication_memberships_for_enrol_instance_deletion',
103
    ],
104
    [
105
        'hook' => \core_enrol\hook\after_user_enrolled::class,
106
        'callback' => \core_communication\hook_listener::class . '::add_communication_membership_for_enrolled_user',
107
    ],
108
    [
109
        'hook' => \core_enrol\hook\before_user_enrolment_updated::class,
110
        'callback' => \core_communication\hook_listener::class . '::update_communication_membership_for_updated_user_enrolment',
111
    ],
112
    [
113
        'hook' => \core_enrol\hook\before_user_enrolment_removed::class,
114
        'callback' => \core_communication\hook_listener::class . '::remove_communication_membership_for_unenrolled_user',
115
    ],
116
    [
117
        'hook' => \core\hook\output\before_standard_footer_html_generation::class,
118
        'callback' => \core_userfeedback::class . '::before_standard_footer_html_generation',
119
    ],
120
    [
121
        'hook' => \core\hook\output\after_standard_main_region_html_generation::class,
122
        'callback' => \core_message\hook_callbacks::class . '::add_messaging_widget',
123
        'priority' => 0,
124
    ],
125
    [
126
        'hook' => \core\hook\task\after_failed_task_max_delay::class,
127
        'callback' => core\task\failed_task_callbacks::class . '::send_failed_task_max_delay_message',
128
    ],
1441 ariadna 129
    [
130
        'hook' => \core\hook\di_configuration::class,
131
        'callback' => [\core\router\hook_callbacks::class, 'provide_di_configuration'],
132
    ],
133
    [
134
        'hook' => \core_files\hook\before_file_created::class,
135
        'callback' => [\core_files\redactor\hook_listener::class, 'file_redaction_handler'],
136
    ],
137
    [
138
        'hook' => \core_course\hook\before_course_viewed::class,
139
        'callback' => [\core_courseformat\hook_listener::class, 'before_course_viewed'],
140
        'priority' => 999,
141
    ],
1 efrain 142
];