function _ckeditor_link_filter_process

cis7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
cle7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
elmsmedia7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
icor7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
meedjum_blog7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
mooc7 ckeditor_link.module _ckeditor_link_filter_process($matches, $langcode = NULL)
1 call to _ckeditor_link_filter_process()
ckeditor_link_filter_process in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module
1 string reference to '_ckeditor_link_filter_process'
ckeditor_link_filter_process in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module

File

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

Code

function _ckeditor_link_filter_process($matches, $langcode = NULL) {
  static $stored_langcode = LANGUAGE_NONE;
  if ($matches === NULL) {
    $stored_langcode = $langcode;
    return;
  }

  $path = urldecode($matches[1]);

  $langcode = $stored_langcode;
  $path = ckeditor_link_path_strip_language($path, $langcode);

  $types = ckeditor_link_get_types();
  foreach ($types as $type) {
    $func = $type['module'] . '_ckeditor_link_' . $type['type'] . '_url';
    if (function_exists($func)) {
      $url = $func($path, $langcode);
      if ($url) {
        return 'href="' . $url;
      }
    }
  }

  return 'href="' . base_path() . $matches[1];
}
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.