The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Reference $LANG in a Hook - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Reference $LANG in a Hook (/showthread.php?tid=3030) |
Reference $LANG in a Hook - grahame - May 9th, 2014 Hi Can anyone tell me how to reference the $LANG file when in a HOOK.... using the notation $message = $LANG["my_test_message"]; does not seem to work? Thanks RE: Reference $LANG in a Hook - grahame - May 28th, 2014 Any chance of advice on this please? RE: Reference $LANG in a Hook - grahame - Aug 18th, 2014 Sorry to bump this but anyone know the syntax for this please? RE: Reference $LANG in a Hook - grahame - Feb 18th, 2015 Just in case anyone else needs to do this... Add global $LANG; at the start of your hook... this worked for me. |