summaryrefslogtreecommitdiffstats
path: root/modules-model.lua
diff options
context:
space:
mode:
authorZach LeBar <zach@zachlebar.com>2012-03-21 15:06:32 +0000
committerZach LeBar <zach@zachlebar.com>2012-03-21 15:09:16 +0000
commit0874f88bc25066248c28b16d3bbf1ab5cd1f2611 (patch)
tree28ee52ea1b8a44eeff8453b6264953a2ab2665bd /modules-model.lua
parent6d638ac9d28eac2c144d229359b64c0edaee2b4d (diff)
downloadacf-alpine-baselayout-master.tar.bz2
acf-alpine-baselayout-master.tar.xz
Change all -controller.lua files to use new handle_form() functions found in acf_www-controller.lua instead of the controllerfunctions.lua version and also instead of redirect_to_referrer(). Made corresponding changes to vmail-model .lua to make everything work.HEADmaster
Diffstat (limited to 'modules-model.lua')
-rw-r--r--modules-model.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules-model.lua b/modules-model.lua
index a21a46b..c5b1a39 100644
--- a/modules-model.lua
+++ b/modules-model.lua
@@ -20,7 +20,15 @@ function write_file(filedetails)
return modelfunctions.setfiledetails(filedetails, {configfile})
end
-function reloadmodules()
- local retval = modelfunctions.startstop_service("modules", "restart", {"restart"})
- return retval.value.result
+function get_reloadmodules(clientdata)
+ local actions = {}
+ actions[1] = "restart"
+ local service = cfe({ type="hidden", value="modules", label="Service Name" })
+ local startstop = cfe({ type="group", label="Reload Modules", value={servicename=service}, option=actions, errtxt=errtxt })
+
+ return startstop
+end
+
+function reloadmodules(startstop)
+ return modelfunctions.startstop_service(startstop, "restart")
end