Jump to content
wtools

Access Language array from hooks.php of an addon module

Recommended Posts

I have a lang folder and many language files like english.php inside the folder.

I can access the language arra from from my_module.php (my module name is my_module) correctly.

Using

$LANG = $vars['_lang'];
But I can't access it from the hooks.php of the addon module. What's the way to access it?

Share this post


Link to post
Share on other sites
5 hours ago, wtools said:

I have a lang folder and many language files like english.php inside the folder.

I can access the language arra from from my_module.php (my module name is my_module) correctly.

Using


$LANG = $vars['_lang'];
But I can't access it from the hooks.php of the addon module. What's the way to access it?

Use:

global $_LANG;

Example 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines