Convert the slideshow module to use the new check environment and pre_deactivate api methods.

This commit is contained in:
Tim Almdal
2010-01-21 13:03:58 -08:00
parent d59c6ed4f1
commit ff2d81b7c3
2 changed files with 14 additions and 0 deletions

View File

@@ -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;
}
}