def hook(name, options={}, &block)
      hooks[name.to_s] << Hook.new(name.to_s, options, &block)
    end
def hook(name, options={}, &block)
      hooks[name.to_s] << Hook.new(name.to_s, options, &block)
    end
Register an extension hook