You are here

function domain_url_filter_process in Domain Access 7.3

Implements hook_filter_FILTER_process() magic callback.

1 call to domain_url_filter_process()
DomainFilterTest::testDomainURLFilters in tests/domain.test
1 string reference to 'domain_url_filter_process'
domain_filter_info in ./domain.module
Implements hook_filter_info().

File

./domain.module, line 4185
Core module functions for the Domain Access suite.

Code

function domain_url_filter_process($text, $filter, $format, $langcode, $cache, $cache_id) {
  $pattern = '/\\[canonical-url:(.+?)\\]/';
  $text = preg_replace_callback($pattern, 'domain_url_replace', $text);
  return $text;
}