aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/start.php b/start.php
index ff668f00c..07ec618a0 100644
--- a/start.php
+++ b/start.php
@@ -67,6 +67,8 @@ function videolist_init() {
elgg_register_action("videolist/add", "$actions_path/add.php");
elgg_register_action("videolist/edit", "$actions_path/edit.php");
elgg_register_action("videolist/delete", "$actions_path/delete.php");
+
+ elgg_register_event_handler('upgrade', 'system', 'videolist_run_upgrades');
}
/**
@@ -262,3 +264,14 @@ function videolist_icon_url_override($hook, $type, $returnvalue, $params) {
return "mod/videolist/graphics/videolist_icon_{$size}.png";
}
}
+
+/**
+ * Process upgrades for the videolist plugin
+ */
+function videolist_run_upgrades() {
+ $path = elgg_get_plugins_path() . 'videolist/upgrades/';
+ $files = elgg_get_upgrade_files($path);
+ foreach ($files as $file) {
+ include "$path{$file}";
+ }
+}