diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-09 00:32:05 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-09 00:32:05 +0000 |
commit | c70edf0f94cbe0cb25ce6c9011e0ecc15c2c1573 (patch) | |
tree | d9e24f3b5c3d0e335b3437ece13e1cf34a40c6f8 /libs | |
parent | ee4fd290a0c4c4ef2ebdbe82e4c3c972016ded16 (diff) |
libs/cbi: implement on_parse hook for maps
Diffstat (limited to 'libs')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 9268d412d..8ca9e5c8d 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -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 |