diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-02-04 22:09:38 +0000 |
commit | de2e393933bb7163148c5010a7c14be9004117bf (patch) | |
tree | fa1e6a2984bb5de5ed5f22c599397faca979b34c /modules/module.module | |
parent | b1d395d52d160c203edff69c323c031f833a8219 (diff) | |
download | brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.gz brdo-de2e393933bb7163148c5010a7c14be9004117bf.tar.bz2 |
- various updates, bugfixes and improvements
Diffstat (limited to 'modules/module.module')
-rw-r--r-- | modules/module.module | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/modules/module.module b/modules/module.module index 9f905c159..4c32990f4 100644 --- a/modules/module.module +++ b/modules/module.module @@ -1,6 +1,13 @@ <? -$module = array("admin" => "module_admin"); +$module = array("help" => "module_help", + "admin" => "module_admin"); + +function module_help() { + ?> + The module administration page provide you a list of all available modules. Moreover, it allows you to "rehash" modules. Whenever you install a new module or when an existing module has been changed or updated, it requires "rehasing": when you rehash a module, the module is registered to the engine and properly initialized. + <? +} function module_admin_rehash() { global $repository; @@ -41,16 +48,23 @@ function module_admin_display() { function module_admin() { global $op, $name; + print "<SMALL><A HREF=\"admin.php?mod=module\">overview</A> | <A HREF=\"admin.php?mod=module&op=help\">help</A></SMALL><HR>\n"; + switch ($op) { - case "Rehash modules": - module_admin_rehash(); + case "help": + module_help(); break; case "rehash": module_rehash($name); + module_admin_display(); break; + case "Rehash modules": + module_admin_rehash(); + module_admin_display(); + break; + default: + module_admin_display(); } - - module_admin_display(); } ?> |