mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 17:53:50 -04:00
Convert the slideshow module to use the new check environment and pre_deactivate api methods.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user