You are here

function _web_widgets_rewrite_anchors in Web Widgets 7

Same name and namespace in other branches
  1. 6 web_widgets.module \_web_widgets_rewrite_anchors()

Extend all anchor tags by target attribute.

@content HTML code.

1 call to _web_widgets_rewrite_anchors()
web_widgets_render_widget in ./web_widgets.module
Renders a given content as a widget. This function returns the actual content of a widget wrapped in style specific markup.

File

./web_widgets.module, line 160
web_widgets module main. Contains the views api hook and theming functions.

Code

function _web_widgets_rewrite_anchors($content) {
  return preg_replace_callback('/(<a[^>]*>)/', "_web_widgets_add_attrib", $content);
}