This function will always be there so when we call hhok_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..76f4bb5 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() { + assert [ $# -eq 1 ] + local config=${1} + echo $(config_get_id_from_config ${config}) +}