mbox

[5/8] header-zone: refactor hook_config_destroy

Message ID 1499264393-13700-5-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 6002aef136fd915932c615b09234cac60d59604c
Headers

Message

Jonatan Schlag July 6, 2017, 12:19 a.m. UTC
  With the new id function this function gets a zone name and a id,
but hook_config_cmd needs also the name of the hook.

So this function now calls zone_config_get_hook_from_id to get the hook
and calls then hook_config_cmd with the correct argument order.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/header-zone | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)