summaryrefslogtreecommitdiff
path: root/modules/slideshow
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-01-23 22:21:37 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-01-23 22:21:37 +0000
commitb21e7be11a0abe57790ec2a2fcca1874632fed8c (patch)
tree63cca83318d4f80914b6b90bbd9063ff5dabc6ea /modules/slideshow
parente47505081f2c1017a68f763e1170b44fddd1e722 (diff)
parentabdeb21ccbb25aee564335dbbfca4a8afaf49384 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/slideshow')
-rw-r--r--modules/slideshow/helpers/slideshow_event.php6
-rw-r--r--modules/slideshow/helpers/slideshow_installer.php8
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php
index c4d7c56d..137ec313 100644
--- a/modules/slideshow/helpers/slideshow_event.php
+++ b/modules/slideshow/helpers/slideshow_event.php
@@ -18,6 +18,12 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class slideshow_event_Core {
+ static function pre_deactivate($data) {
+ if ($data->module == "rss") {
+ $data->messages["warn"][] = t("The Slideshow module requires the RSS module.");
+ }
+ }
+
static function module_change($changes) {
if (!module::is_active("rss") || in_array("rss", $changes->deactivate)) {
site_status::warning(
diff --git a/modules/slideshow/helpers/slideshow_installer.php b/modules/slideshow/helpers/slideshow_installer.php
index 03f3332c..8d612f3e 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 can_activate() {
+ $messages = array();
+ if (!module::is_active("rss")) {
+ $messages["warn"][] = t("The Slideshow module requires the RSS module.");
+ }
+ return $messages;
+ }
}