function ckeditor_link_url

cis7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
cle7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
elmsmedia7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
icor7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
meedjum_blog7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
mooc7 ckeditor_link.module ckeditor_link_url($path = NULL, $langcode)
2 calls to ckeditor_link_url()
ckeditor_link_ckeditor_link_node_url in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.node.inc
Implementation of hook_ckeditor_link_TYPE_url().
ckeditor_link_ckeditor_link_taxonomy_url in sites/all/modules/ulmus/ckeditor_link/includes/ckeditor_link.taxonomy.inc
Implementation of hook_ckeditor_link_TYPE_url().

File

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

Code

function ckeditor_link_url($path = NULL, $langcode) {
  $options = array();

  if ($langcode != LANGUAGE_NONE) {
    $languages = ckeditor_link_get_languages();
    if ($languages && isset($languages[$langcode])) {
      $options['language'] = $languages[$langcode];
    }
  }

  if (!isset($options['language'])) {
    $options['language'] = language_default();
  }

  return url($path, $options);
}