function _web_widgets_add_attrib in Web Widgets 6
Same name and namespace in other branches
- 7 web_widgets.module \_web_widgets_add_attrib()
Helper function for preg_replace_callback.
Parameters
$matches: Regexp matches
See also
_web_widgets_rewrite_anchors()
1 string reference to '_web_widgets_add_attrib'
- _web_widgets_rewrite_anchors in ./
web_widgets.module - Extend all anchor tags by target attribute.
File
- ./
web_widgets.module, line 161 - web_widgets module main. Contains the views api hook and theming functions.
Code
function _web_widgets_add_attrib($matches) {
return str_replace('>', ' target="_top">', $matches[0]);
}