diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-15 16:30:02 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-15 16:30:02 -0700 |
commit | 8fb56abf034dd1f5c561e7af12bf6e097a3de6f6 (patch) | |
tree | 847cd019738496f803e815fcf5637d84a30b1f6f /modules/organize/helpers | |
parent | 94ada2361df1132d83fa5b14d1b6843725b29166 (diff) |
Bump the organize module to version 2, and check to make sure that the
REST module is active.
Diffstat (limited to 'modules/organize/helpers')
-rw-r--r-- | modules/organize/helpers/organize_installer.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/organize/helpers/organize_installer.php b/modules/organize/helpers/organize_installer.php index 7585438f..bbe6fc65 100644 --- a/modules/organize/helpers/organize_installer.php +++ b/modules/organize/helpers/organize_installer.php @@ -22,6 +22,20 @@ class organize_installer { site_status::clear("organize_needs_rest"); } + static function upgrade($version) { + if ($version == 1) { + if (!module::is_active("rest")) { + site_status::warning( + t("The Organize module requires the Rest module. " . + "<a href=\"%url\">Activate the Rest module now</a>", + array("url" => html::mark_clean(url::site("admin/modules")))), + "organize_needs_rest"); + } + + module::set_version("organize", $version = 2); + } + } + static function can_activate() { $messages = array(); if (!module::is_active("rest")) { |