You are here

function _twitter_filter_username in Twitter 7.3

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

Callback for twitter @username converter

1 string reference to '_twitter_filter_username'
twitter_filter_info in ./twitter.module
Implements hook_filter_info().

File

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

Code

function _twitter_filter_username($text, $filter) {
  $prefix = '@';
  $destination = variable_get('twitter_host', TWITTER_HOST) . '/';
  return _twitter_filter_text($text, $prefix, $destination);
}