Timeline for Body Class, Drupal 7, change language name programmatically
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2012 at 14:06 | comment | added | paranod | 0 down vote accept Is working thank you very much for your help:) Ignore my last comment. Forgot to add the tags. Thank you once again. | |
Jun 14, 2012 at 7:30 | comment | added | paranod | ok you are right. This is bad practice. I have changed it back to il8n- and created the module as your edited comment. But insted of having the body class tag lang-en i have the code from inside my customclasses.module appeared on my screen along with the comment which is weird. | |
Jun 14, 2012 at 6:16 | vote | accept | paranod | ||
Jun 13, 2012 at 15:17 | history | edited | 7wonders | CC BY-SA 3.0 |
Improved answer to explain custom module
|
Jun 13, 2012 at 15:05 | comment | added | 7wonders | Noooo, dont do that! But seriously, dont. Its really bad practice to mess with modules, and you will regret it in the future when you update that module. I will update my answer with what you need to do exactly to get the exact same effect and it will only take you 2 more minutes. Plus, if you think my answer is the right answer, you should click to accept that its the right answer. | |
Jun 13, 2012 at 14:51 | comment | added | paranod | :) thank you so much for your quick reply. I just changed this line from Line:267: $variables['classes_array'][] = 'i18n-' . $language->language; to Line:267: $variables['classes_array'][] = 'lang-' . $language->language; and it worked. :) | |
Jun 13, 2012 at 14:31 | history | answered | 7wonders | CC BY-SA 3.0 |