You are here

function ckeditor_link_filter_process in CKEditor Link 7

Same name and namespace in other branches
  1. 7.2 ckeditor_link.module \ckeditor_link_filter_process()
1 string reference to 'ckeditor_link_filter_process'
ckeditor_link_filter_info in ./ckeditor_link.module
Implementation of hook_filter_info().

File

./ckeditor_link.module, line 121
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_link_filter_process($text, $filter, $format, $langcode, $cache, $cache_id) {
  return preg_replace_callback('`\\bhref="' . preg_quote(base_path(), '`') . 'node/(\\d+)(?=[?#"])`', '_ckeditor_link_filter_process', $text);
}