1
0

Warn that minislideshow requires RSS.

This commit is contained in:
rWatcher 2011-06-08 20:08:28 -04:00
parent b29d7ad81f
commit 4f707f572c
4 changed files with 28 additions and 0 deletions

View File

@ -41,6 +41,12 @@ class minislideshow_event_Core {
}
}
static function pre_deactivate($data) {
if ($data->module == "rss") {
$data->messages["warn"][] = t("The MiniSlide Show module requires the RSS module.");
}
}
static function album_menu($menu, $theme) {
// Add an option to access the slideshow from the album view.
$menu

View File

@ -22,4 +22,12 @@ class minislideshow_installer {
static function deactivate() {
site_status::clear("minislideshow_needs_rss");
}
static function can_activate() {
$messages = array();
if (!module::is_active("rss")) {
$messages["warn"][] = t("The MiniSlide Show module requires the RSS module.");
}
return $messages;
}
}

View File

@ -41,6 +41,12 @@ class minislideshow_event_Core {
}
}
static function pre_deactivate($data) {
if ($data->module == "rss") {
$data->messages["warn"][] = t("The MiniSlide Show module requires the RSS module.");
}
}
static function album_menu($menu, $theme) {
// Add an option to access the slideshow from the album view.
$menu

View File

@ -22,4 +22,12 @@ class minislideshow_installer {
static function deactivate() {
site_status::clear("minislideshow_needs_rss");
}
static function can_activate() {
$messages = array();
if (!module::is_active("rss")) {
$messages["warn"][] = t("The MiniSlide Show module requires the RSS module.");
}
return $messages;
}
}