function _pathologic_do_href in Pathologic 6.2
Same name and namespace in other branches
- 5 pathologic.module \_pathologic_do_href()
- 6 pathologic.module \_pathologic_do_href()
Properly format 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 138 - Pathologic text filter for Drupal.
Code
function _pathologic_do_href($matches) {
return 'href="' . _pathologic_url($matches[2], isset($matches[4]) ? $matches[4] : NULL, isset($matches[6]) ? $matches[6] : NULL) . '"';
}