mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-13 18:40:12 -04:00
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).
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<tr class="<?= ($i % 2 == 0) ? "gEvenRow" : "gOddRow" ?>">
|
||||
<? $data = array("name" => $module_name); ?>
|
||||
<? if ($module_info->locked) $data["disabled"] = 1; ?>
|
||||
<td> <?= form::checkbox($data, '1', module::is_installed($module_name)) ?> </td>
|
||||
<td> <?= form::checkbox($data, '1', module::is_active($module_name)) ?> </td>
|
||||
<td> <?= t($module_info->name) ?> </td>
|
||||
<td> <?= $module_info->version ?> </td>
|
||||
<td> <?= t($module_info->description) ?> </td>
|
||||
|
||||
Reference in New Issue
Block a user