You are here

function _web_widgets_add_attrib in Web Widgets 7

Same name and namespace in other branches
  1. 6 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 171
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]);
}