summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-06-15 16:30:02 -0700
committerBharat Mediratta <bharat@menalto.com>2010-06-15 16:30:02 -0700
commit8fb56abf034dd1f5c561e7af12bf6e097a3de6f6 (patch)
tree847cd019738496f803e815fcf5637d84a30b1f6f
parent94ada2361df1132d83fa5b14d1b6843725b29166 (diff)
Bump the organize module to version 2, and check to make sure that the
REST module is active.
-rw-r--r--modules/organize/helpers/organize_installer.php14
-rw-r--r--modules/organize/module.info2
2 files changed, 15 insertions, 1 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")) {
diff --git a/modules/organize/module.info b/modules/organize/module.info
index 5c6b1de0..d7199571 100644
--- a/modules/organize/module.info
+++ b/modules/organize/module.info
@@ -1,3 +1,3 @@
name = "Organize"
description = "Organize your gallery by apply tags or moving images"
-version = 1
+version = 2