aboutsummaryrefslogtreecommitdiff
path: root/mod/blog
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-06 07:55:11 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-06 07:55:11 -0500
commit2615252b460c01dd54170fed510516a1c50e3a42 (patch)
treeda9a692379bd98a73dbee4e76f2fa479d80f1782 /mod/blog
parenta7b3dfa29f185c1f154ec229ba448222d6d442af (diff)
downloadelgg-2615252b460c01dd54170fed510516a1c50e3a42.tar.gz
elgg-2615252b460c01dd54170fed510516a1c50e3a42.tar.bz2
Fixes #4067 adds activate/deactivate scripts
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');