function ckeditor_link_path_prefix_language

cis7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
cle7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
elmsmedia7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
icor7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
meedjum_blog7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
mooc7 ckeditor_link.module ckeditor_link_path_prefix_language($path, $langcode)
4 calls to ckeditor_link_path_prefix_language()
ckeditor_link_ckeditor_link_i18n_menu_autocomplete in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.i18n_menu.inc
Implementation of hook_ckeditor_link_TYPE_autocomplete().
ckeditor_link_ckeditor_link_i18n_taxonomy_autocomplete in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.i18n_taxonomy.inc
Implementation of hook_ckeditor_link_TYPE_autocomplete().
ckeditor_link_ckeditor_link_menu_autocomplete in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.menu.inc
Implementation of hook_ckeditor_link_TYPE_autocomplete().
ckeditor_link_revert in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module

File

sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module, line 285
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_link_path_prefix_language($path, $langcode) {
  if ($langcode != LANGUAGE_NONE) {
    $languages = ckeditor_link_get_languages();
    if ($languages && isset($languages[$langcode])) {
      $language = $languages[$langcode];
      if (!empty($language->prefix)) {
        $path = (empty($path)) ? $language->prefix : $language->prefix . '/' . $path;
      }
    }
  }

  return $path;
}