Hex Glyph

Abjuration
Level: Shaman * 3, Warlock * 3
Components: V, S, M (powdered diamond worth 200 gp)
Casting Time: 10 minutes
Range: touch
Area: object touched or up to 5 sq. ft./level
Target: object touched or up to 5 sq. ft./level
Duration: permanent until discharged (D)
Saving Throw: see text
Spell Resistance: no (object) and yes, see text
  This spell functions like the spell glyph version of glyph of warding, except you can store a hex you know (but not a major hex or a grand hex) instead of a spell. If the hex has a target, it targets the intruder. If the hex has an area or an amorphous effect, the area or effect is centered on the intruder. The triggered hex uses this spell's Caster Level and DC.
  Read magic allows its caster to identify a hex glyph with a successful DC 13 Knowledge (arcana) check. Identifying the glyph does not discharge it and indicates that it stores a hex, but does not indicate the effect of that hex.