[PATCH 5/5] header-config: add generic hook_edit function