diff options
Diffstat (limited to 'mod/thewire')
-rw-r--r-- | mod/thewire/activate.php | 6 | ||||
-rw-r--r-- | mod/thewire/deactivate.php | 6 | ||||
-rw-r--r-- | mod/thewire/start.php | 1 |
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'); } |