diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-26 05:28:59 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-26 05:28:59 +0000 |
commit | 7aed9239088b582a065da3fb63796ff66cd357c8 (patch) | |
tree | 8be9bc4faec21b20cbcc060ad5e9ca128465d09e /core/helpers/block_manager.php | |
parent | 2966289b147ceae2fed79b9534840607bf38e0d8 (diff) |
Restructure the module lifecycle.
Install: <module>_installer::install() is called, any necessary tables
are created.
Activate: <module>_installer::activate() is called. Module
controllers are routable, helpers are accessible, etc. The module is
in use.
Deactivate: <module>_installer::deactivate() is called. Module code
is not accessible or routable. Module is *not* in use, but its tables
are still around.
Uninstall: <module>_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).
Diffstat (limited to 'core/helpers/block_manager.php')
-rw-r--r-- | core/helpers/block_manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/block_manager.php b/core/helpers/block_manager.php index 9e8ab877..022626e5 100644 --- a/core/helpers/block_manager.php +++ b/core/helpers/block_manager.php @@ -41,7 +41,7 @@ class block_manager_Core { static function get_available() { $blocks = array(); - foreach (module::installed() as $module) { + foreach (module::active() as $module) { $class_name = "{$module->name}_block"; if (method_exists($class_name, "get_list")) { foreach (call_user_func(array($class_name, "get_list")) as $id => $title) { |