mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Implement additional plugin hook script.onUpdateConfig
Implements #4451
This commit is contained in:
parent
402e1113fb
commit
304c5404f2
4 changed files with 70 additions and 0 deletions
|
|
@ -82,6 +82,14 @@ local script = {
|
|||
|
||||
-- #################################################################
|
||||
|
||||
-- @brief See host/example.lua
|
||||
function script.onUpdateConfig(confid, config)
|
||||
print("on update:" .. script.key.. " confid: "..confid.."\n")
|
||||
tprint(config)
|
||||
end
|
||||
|
||||
-- #################################################################
|
||||
|
||||
-- @brief Called when the script is going to be loaded.
|
||||
-- @return true if the script should be loaded, false otherwise
|
||||
-- @note Can be used to init some script global state or to skip the script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue