Hooks

hooks.lua implements a WordPress style action and event system. While at the time of writing it’s currently unused in vanilla Shard, the file is included and the functions are available for use

Functions include:

  • add_hook(hookname,f,fself)
  • remove_hook(hookname, f)
  • remove_hooks(hookname)
  • do_hook(hookname,data)