diff options
author | Sem <sembrestels@riseup.net> | 2012-02-25 02:18:00 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-02-25 02:18:00 +0100 |
commit | f1a0a4d5aa28753620552df9d5e88bd983d0aca4 (patch) | |
tree | 916f0f335ac1a0716b321c229ccd9ba7511bf284 /start.php | |
parent | 8ccd45aa77d290906fd42dcf5520a434303d4f68 (diff) | |
download | elgg-f1a0a4d5aa28753620552df9d5e88bd983d0aca4.tar.gz elgg-f1a0a4d5aa28753620552df9d5e88bd983d0aca4.tar.bz2 |
Added upgrade script to fetch thumbnails.
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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}"; + } +} |