-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate.php
29 lines (24 loc) · 875 Bytes
/
activate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Register the ElggDiscussionReply class for the object/discussion_reply subtype
*/
if (get_subtype_id('object', 'lessons_reply')) {
update_subtype('object', 'lessons_reply', 'ElggLessonsReply');
} else {
add_subtype('object', 'lessons_reply', 'ElggLessonsReply');
}
if (get_subtype_id('object', 'lessons_completed')) {
update_subtype('object', 'lessons_completed', 'ElggLessonsCompleted');
} else {
add_subtype('object', 'lessons_completed', 'ElggLessonsCompleted');
}
if (get_subtype_id('object', 'lessons_featured')) {
update_subtype('object', 'lessons_featured', 'LessonsFeatured');
} else {
add_subtype('object', 'lessons_featured', 'LessonsFeatured');
}
if (get_subtype_id('object', 'reading_material')) {
update_subtype('object', 'reading_material', 'ReadingMaterial');
} else {
add_subtype('object', 'reading_material', 'ReadingMaterial');
}