You are here

function _pathologic_do_href in Pathologic 5

Same name and namespace in other branches
  1. 6 pathologic.module \_pathologic_do_href()
  2. 6.2 pathologic.module \_pathologic_do_href()

preg_replace_callback() callback function. Properly formats an HREF element. Here's where the magic happens…

1 string reference to '_pathologic_do_href'
pathologic_filter in ./pathologic.module
Implementation of hook_filter().

File

./pathologic.module, line 127

Code

function _pathologic_do_href($matches) {
  return 'href="' . _pathologic_url($matches[1], $matches[2]) . '"';
}