aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-06 00:07:57 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-06 00:07:57 +0000
commit8dc1292fcbb737b3986146e1e1cdce8cfafc6be8 (patch)
tree86f0e0698b74dd9e04f1989a835e7a5d8ca803e7 /mod
parent38e7d84f89340e6e0ffb40323b2c86770cf9fe4e (diff)
downloadelgg-8dc1292fcbb737b3986146e1e1cdce8cfafc6be8.tar.gz
elgg-8dc1292fcbb737b3986146e1e1cdce8cfafc6be8.tar.bz2
Refs #2679 added a function for processing groups plugin upgrades
git-svn-id: http://code.elgg.org/elgg/trunk@8608 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index f8cff6a8a..1012b5bbc 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -548,7 +548,6 @@ function discussion_init() {
register_notification_object('object', 'groupforumtopic', elgg_echo('groupforumtopic:new'));
elgg_register_plugin_hook_handler('object:notifications', 'object', 'group_object_notifications_intercept');
elgg_register_plugin_hook_handler('notify:entity:message', 'object', 'groupforumtopic_notify_message');
-
}
/**
@@ -718,3 +717,14 @@ function groups_can_edit_discussion($entity, $group_owner) {
return false;
}
}
+
+/**
+ * Process upgrades for the groups plugin
+ */
+function groups_run_upgrades() {
+ $path = elgg_get_plugins_path() . 'groups/upgrades/';
+ $files = elgg_get_upgrade_files($path);
+ foreach ($files as $file) {
+ include "$path{$file}";
+ }
+}