Lines Matching full:hook
31 .Nm hook.lua
32 .Nd FreeBSD hook module
35 contains functionality for defining hook types and attaching hooks.
39 .Dq hook types .
47 .Dl local hook = require("hook")
51 .Bl -tag -width hook.registerType -offset indent
52 .It Fn hook.registerType hooktype
55 as a recognized hook type.
58 .Fn hook.runAll hooktype .
59 .It Fn hook.register hooktype hookfunc
65 .It Fn hook.runAll hooktype
70 .Ss Hook Naming Guidelines
71 Hook names should consist of the name of the module they are defined in, as well
72 as a verb describing when the hook is executed, separated by a period.
79 To register a hook to be run when configuration is reloaded:
82 local hook = require("hook")
88 hook.register("config.reloaded", configuration_was_reloaded)