summaryrefslogtreecommitdiff
path: root/modules/slideshow/helpers/slideshow_installer.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-21 13:03:58 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-21 13:03:58 -0800
commitff2d81b7c3b75e548766fb8a0ae370cbb2e39bf5 (patch)
treeadcd276db44c955de10f9aedaeb3ace725731ff7 /modules/slideshow/helpers/slideshow_installer.php
parentd59c6ed4f149c201542c8b38f9ad9d61b4daabf4 (diff)
Convert the slideshow module to use the new check environment and pre_deactivate api methods.
Diffstat (limited to 'modules/slideshow/helpers/slideshow_installer.php')
-rw-r--r--modules/slideshow/helpers/slideshow_installer.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/slideshow/helpers/slideshow_installer.php b/modules/slideshow/helpers/slideshow_installer.php
index 03f3332c..319e2e79 100644
--- a/modules/slideshow/helpers/slideshow_installer.php
+++ b/modules/slideshow/helpers/slideshow_installer.php
@@ -33,4 +33,12 @@ class slideshow_installer {
static function deactivate() {
site_status::clear("slideshow_needs_rss");
}
+
+ static function check_environment() {
+ $messages = array();
+ if (!module::is_active("rss")) {
+ $messages["warn"][] = t("The Slideshow module requires the RSS module.");
+ }
+ return $messages;
+ }
}