I want to display a link to the spanish version of a page in my template, but another module is removing the language option on my link function:
l('Visit this page in Spanish', "node/{$node->nid}", array( 'language'=>'es' ));
I have the general routing set up the way I want; most of the time I want links to target the current language. Except this time - now I really want that link in spanish : )
How do I force l()
to keep the language I specify? Or should I use another function?