Warn that minislideshow requires RSS.
This commit is contained in:
parent
b29d7ad81f
commit
4f707f572c
@ -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) {
|
static function album_menu($menu, $theme) {
|
||||||
// Add an option to access the slideshow from the album view.
|
// Add an option to access the slideshow from the album view.
|
||||||
$menu
|
$menu
|
||||||
|
@ -22,4 +22,12 @@ class minislideshow_installer {
|
|||||||
static function deactivate() {
|
static function deactivate() {
|
||||||
site_status::clear("minislideshow_needs_rss");
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
static function album_menu($menu, $theme) {
|
||||||
// Add an option to access the slideshow from the album view.
|
// Add an option to access the slideshow from the album view.
|
||||||
$menu
|
$menu
|
||||||
|
@ -22,4 +22,12 @@ class minislideshow_installer {
|
|||||||
static function deactivate() {
|
static function deactivate() {
|
||||||
site_status::clear("minislideshow_needs_rss");
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user