aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
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/thewire
parenta7b3dfa29f185c1f154ec229ba448222d6d442af (diff)
downloadelgg-2615252b460c01dd54170fed510516a1c50e3a42.tar.gz
elgg-2615252b460c01dd54170fed510516a1c50e3a42.tar.bz2
Fixes #4067 adds activate/deactivate scripts
Diffstat (limited to 'mod/thewire')
-rw-r--r--mod/thewire/activate.php6
-rw-r--r--mod/thewire/deactivate.php6
-rw-r--r--mod/thewire/start.php1
3 files changed, 13 insertions, 0 deletions
diff --git a/mod/thewire/activate.php b/mod/thewire/activate.php
new file mode 100644
index 000000000..1db83f7be
--- /dev/null
+++ b/mod/thewire/activate.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * Register the ElggWire class for the object/thewire subtype
+ */
+
+add_subtype('object', 'thewire', 'ElggWire');
diff --git a/mod/thewire/deactivate.php b/mod/thewire/deactivate.php
new file mode 100644
index 000000000..3e20207a1
--- /dev/null
+++ b/mod/thewire/deactivate.php
@@ -0,0 +1,6 @@
+<?php
+/**
+ * Deregister the ElggWire class
+ */
+
+update_subtype('object', 'thewire'); \ No newline at end of file
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 2ed0f0b4d..c0890344f 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -20,6 +20,7 @@ elgg_register_event_handler('init', 'system', 'thewire_init');
function thewire_init() {
global $CONFIG;
+ // this can be removed in favor of activate/deactivate scripts
if (!update_subtype('object', 'thewire', 'ElggWire')) {
add_subtype('object', 'thewire', 'ElggWire');
}