Changing language in drupal So my problem is i dont know how to make my custom menu item change language in drupal. I know there is a language switcher in drupal, but i want to make a new custom menu in drupal, theme it, and i want the links to trigger changing the language, like the link "french" changes the site to french. How can this custom trigger of events be created in drupal and how do i know which functions to call/variables to change to allow me to achieve this?

I really appreciate any help!
May be you are looking for language_negotiation_get_switch_links


  Return the language switch links for the given language.


$path = drupal_is_front_page() ? '&lt;front&gt;' : $_GET['q'];
$links = language_negotiation_get_switch_links($type, $path);