documenting hook.php