0

I am using Language Switcher Dropdown module for language selection.

Successfully implemented this module and also get $language array properly in page.tpl.php file based on language selection.

But I am not able to get $language array in region--header.tpl.php file.

So how can I use this array in region files ?

1 Answer 1

1

$language; is a global variable in drupal 7. You can get this variable in region--header.tpl.php as shown below:

global $language;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.