function language_access_translation_link_alter in Language access 6
File
- ./
language_access.module, line 50
Code
function language_access_translation_link_alter(&$links, $path) {
$languages = language_list('enabled');
foreach ($languages[1] as $language) {
if (!user_access('access language ' . $language->language)) {
if (isset($links[$language->language])) {
unset($links[$language->language]);
}
}
}
}