aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-02-25 02:18:00 +0100
committerSem <sembrestels@riseup.net>2012-02-25 02:18:00 +0100
commitf1a0a4d5aa28753620552df9d5e88bd983d0aca4 (patch)
tree916f0f335ac1a0716b321c229ccd9ba7511bf284 /start.php
parent8ccd45aa77d290906fd42dcf5520a434303d4f68 (diff)
downloadelgg-f1a0a4d5aa28753620552df9d5e88bd983d0aca4.tar.gz
elgg-f1a0a4d5aa28753620552df9d5e88bd983d0aca4.tar.bz2
Added upgrade script to fetch thumbnails.
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}";
+ }
+}