From 8dc1292fcbb737b3986146e1e1cdce8cfafc6be8 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 6 Mar 2011 00:07:57 +0000 Subject: 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 --- mod/groups/start.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mod') 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}"; + } +} -- cgit v1.2.3