You are here

function _twitter_filter_link in Twitter 6.5

Same name and namespace in other branches
  1. 7.6 twitter.module \_twitter_filter_link()
  2. 7.4 twitter.module \_twitter_filter_link()
  3. 7.5 twitter.module \_twitter_filter_link()

Callback for twitter link converter.

Makes links to be opened in new tabs and not to be indexed by SEO scrappers.

Parameters

string $text: The text to be filtered.

Return value

string The processed string.

2 calls to _twitter_filter_link()
twitter_filter in ./twitter.module
Implementation of hook_filter().
twitter_filter_message in ./twitter.module
Convert embedded URLs, hashtags and usernames in a tweet to links.

File

./twitter.module, line 331
Provides API integration with the Twitter microblogging service.

Code

function _twitter_filter_link($text) {
  return str_replace('<a ', '<a target="_blank" rel="nofollow" class="twitter-timeline-link" ', $text);
}