From 7aed9239088b582a065da3fb63796ff66cd357c8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 26 May 2009 05:28:59 +0000 Subject: Restructure the module lifecycle. Install: _installer::install() is called, any necessary tables are created. Activate: _installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: _installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: _installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules). --- modules/slideshow/helpers/slideshow_event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/slideshow/helpers/slideshow_event.php') diff --git a/modules/slideshow/helpers/slideshow_event.php b/modules/slideshow/helpers/slideshow_event.php index 12765922..c6cd7dc7 100644 --- a/modules/slideshow/helpers/slideshow_event.php +++ b/modules/slideshow/helpers/slideshow_event.php @@ -19,10 +19,10 @@ */ class slideshow_event_Core { static function module_change($changes) { - if (!module::is_installed("rss") || in_array("rss", $changes->uninstall)) { + if (!module::is_active("rss") || in_array("rss", $changes->deactivate)) { site_status::warning( t("The Slideshow module requires the RSS module. " . - "Install the RSS module now", + "Activate the RSS module now", array("url" => url::site("admin/modules"))), "slideshow_needs_rss"); } else { -- cgit v1.2.3