libs/cbi: implement on_parse hook for maps

This commit is contained in:
Jo-Philipp Wich 2009-11-09 00:32:05 +00:00
parent ee4fd290a0
commit c70edf0f94

View file

@ -351,6 +351,7 @@ end
-- Use optimized UCI writing
function Map.parse(self, readinput, ...)
self.readinput = (readinput ~= false)
self:_run_hooks("on_parse")
if self:formvalue("cbi.skip") then
self.state = FORM_SKIP