From 4fc5d50eb83f29c0a28ce16b9ff22179fd3f2c98 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Jan 2011 12:59:12 -0800 Subject: Bump the organize module to version 3 and get rid of the code that makes sure that it depends on the REST module. --- modules/organize/helpers/organize_event.php | 18 --------- modules/organize/helpers/organize_installer.php | 49 ------------------------- modules/organize/module.info | 4 +- 3 files changed, 2 insertions(+), 69 deletions(-) delete mode 100644 modules/organize/helpers/organize_installer.php (limited to 'modules/organize') diff --git a/modules/organize/helpers/organize_event.php b/modules/organize/helpers/organize_event.php index d6d21fc1..58daf180 100644 --- a/modules/organize/helpers/organize_event.php +++ b/modules/organize/helpers/organize_event.php @@ -51,22 +51,4 @@ class organize_event_Core { } } } - - static function pre_deactivate($data) { - if ($data->module == "rest") { - $data->messages["warn"][] = t("The Organize module requires the Rest module."); - } - } - - static function module_change($changes) { - if (!module::is_active("rest") || in_array("rest", $changes->deactivate)) { - site_status::warning( - t("The Organize module requires the Rest module. Activate the Rest module now", - array("url" => html::mark_clean(url::site("admin/modules")))), - "organize_needs_rest"); - } else { - site_status::clear("organize_needs_rest"); - } - } - } diff --git a/modules/organize/helpers/organize_installer.php b/modules/organize/helpers/organize_installer.php deleted file mode 100644 index 2faa598b..00000000 --- a/modules/organize/helpers/organize_installer.php +++ /dev/null @@ -1,49 +0,0 @@ -Activate the Rest module now", - 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")) { - $messages["warn"][] = t("The Organize module requires the Rest module."); - } - return $messages; - } -} diff --git a/modules/organize/module.info b/modules/organize/module.info index d7199571..be0bc86d 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 = 2 +description = "Visually rearrange and move photos in your gallery" +version = 3 -- cgit v1.2.3