aboutsummaryrefslogblamecommitdiff
path: root/lib/ejabberd/hooks.ex
blob: a9e0dfef769220738d4397781bf3ba33d74432c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                       
defmodule Ejabberd.Hooks do

  # Generic hook setting features
  def add(hook_name, host, module, function, priority) do
    :ejabberd_hooks.add(hook_name, host, module, function, priority)
  end

  # Should be named 'removed'
  def delete(hook_name, host, module, function, priority) do
    :ejabberd_hooks.delete(hook_name, host, module, function, priority)
  end

end