You are here

function _pathologic_do_href in Pathologic 6

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

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

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

File

./pathologic.module, line 131
The main and only module file.

Code

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