diff options
-rw-r--r-- | mod/groups/start.php | 12 |
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}"; + } +} |