mbox

[6/8] header-zone: refactor hook_config_edit

Message ID 1499264393-13700-6-git-send-email-jonatan.schlag@ipfire.org
State Accepted
Commit 9ee04d82009249b4f4e33e8d1389b648998c3315
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(-)