aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
Diffstat (limited to 'mod/blog')
-rw-r--r--mod/blog/activate.php6
-rw-r--r--mod/blog/deactivate.php6
2 files changed, 12 insertions, 0 deletions
diff --git a/mod/blog/activate.php b/mod/blog/activate.php
new file mode 100644
index 000000000..5f67ffbed
--- /dev/null
+++ b/mod/blog/activate.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * Register the ElggBlog class for the object/blog subtype
+ */
+
+add_subtype('object', 'blog', 'ElggBlog');
diff --git a/mod/blog/deactivate.php b/mod/blog/deactivate.php
new file mode 100644
index 000000000..4a275fa94
--- /dev/null
+++ b/mod/blog/deactivate.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * Deregister the ElggBlog class
+ */
+
+update_subtype('object', 'blog');