mech Posted October 28, 2015 Share Posted October 28, 2015 Hey, is it possible to use Language Vars in a Hook? We try something but i think it dont work? regards 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted October 29, 2015 Share Posted October 29, 2015 yes it is possible, you need to add one line at the beginning of your function like the example below: <?php function hook_testingLanguage($vars){ global $_LANG; // Add your Action Hook here $button = '<a href="#anyURL">'.$_LANG['helloworld'].'</a>'; return array("helloworldbutton", $button); } add_hook("ClientAreaPage", 1, "hook_testingLanguage"); 0 Quote Link to comment Share on other sites More sharing options...
mech Posted November 1, 2015 Author Share Posted November 1, 2015 thanks, i will test it asap 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.