function ckeditor_link_ckeditor_link_node_url

cis7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)
cle7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)
elmsmedia7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)
icor7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)
meedjum_blog7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)
mooc7 ckeditor_link.node.inc ckeditor_link_ckeditor_link_node_url($path, $langcode)

Implementation of hook_ckeditor_link_TYPE_url().

File

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

Code

function ckeditor_link_ckeditor_link_node_url($path, $langcode) {
  if (!preg_match('`^node/(\d+)$`', $path, $matches)) {
    return;
  }

  $nid = $matches[1];

  $languages = ckeditor_link_get_languages();
  if ($languages) {
    $language = db_query('SELECT language FROM {node} WHERE nid = :nid', array(':nid' => $nid))->fetchField();
    if ($language && ($language != LANGUAGE_NONE) && isset($languages[$language])) {
      $langcode = $language;
    }
  }

  return ckeditor_link_url("node/$nid", $langcode);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.