function ckeditor_link_url in CKEditor Link 7.2
Same name and namespace in other branches
- 6.2 ckeditor_link.module \ckeditor_link_url()
2 calls to ckeditor_link_url()
- ckeditor_link_ckeditor_link_node_url in includes/
ckeditor_link.node.inc - Implementation of hook_ckeditor_link_TYPE_url().
- ckeditor_link_ckeditor_link_taxonomy_url in includes/
ckeditor_link.taxonomy.inc - Implementation of hook_ckeditor_link_TYPE_url().
File
- ./
ckeditor_link.module, line 328 - 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);
}