Closed (fixed)
Project:
Internationalization
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2009 at 02:53 UTC
Updated:
11 May 2009 at 15:50 UTC
Hello,
How can I remove the current language from the language switcher block?
I found this snippet
$current = i18n_get_lang();
unset($links[$current]);That could be used if the language switcher is placed as part of the page.tpl.php but I'm not sure where to place it if I leave it as part of the block?
Any help would be great
Comments
Comment #1
sgabe commentedSubscribe. I would like to remove the link of the current language too.
Comment #2
sgabe commentedTill then, one solution to the problem to invoke hook_translation_link_alter(); function in a new module with totocol's snippet.
Comment #3
jose reyero commentedYes, that will work.
You can also code a module that provides a different block, instead of altering the translation module's block.