diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-15 05:15:45 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-03-15 05:15:45 +0000 |
| commit | 7c5ba9d4229a6e3c258f6a80769e70c5dcd68578 (patch) | |
| tree | e0f1011cbfb596c0b4ee07b1cbd3392b3f1b97a3 /modules/developer/views/installer.txt.php | |
| parent | 181737fb12b04be0ee3d87048efae1dfba33361e (diff) | |
Refactored the developer module. When a new module is generated a
skeleton adminstration page is generated as well.
@todo is still generate a skeleton block and a skeleton dialog.
Diffstat (limited to 'modules/developer/views/installer.txt.php')
| -rw-r--r-- | modules/developer/views/installer.txt.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/developer/views/installer.txt.php b/modules/developer/views/installer.txt.php index 81d6d795..1ccc3327 100644 --- a/modules/developer/views/installer.txt.php +++ b/modules/developer/views/installer.txt.php @@ -18,16 +18,17 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -class <?= $module_name ?>_installer { +class <?= $module ?>_installer { static function install() { - $version = module::get_version("<?= $module_name ?>"); + $version = module::get_version("<?= $module ?>"); if ($version == 0) { /* @todo Put database creation here */ - module::set_version("<?= $module_name ?>", 1); + module::set_version("<?= $module ?>", 1); } } static function uninstall() { - module::delete("<?= $module_name ?>"); + /* @todo Put database table drops here */ + module::delete("<?= $module ?>"); } } |
