This function will always be there so when we call hook_hid we will get a result. This is also nice for testing.
Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/header-config | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/src/header-config b/src/header-config index e3c6423..1b6f530 100644 --- a/src/header-config +++ b/src/header-config @@ -76,3 +76,11 @@ hook_edit() {
exit ${EXIT_OK} } + +# We will return the id as generic variant of the hid +# Although this should not be the standard +hook_hid() { + # the zone name would be ${1} + local config=${2} + config_get_id_from_config "${config}" +}