You are here

function _twitter_filter_hashtag in Twitter 7.6

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

Callback for twitter #hashtag converter.

Parameters

string $text: The text to be filtered.

mixed $filter: The filter configuration.

Return value

string The processed string.

2 calls to _twitter_filter_hashtag()
twitter_filter_message in ./twitter.module
Convert embedded URLs, hashtags and usernames in a tweet to links.
twitter_status.tpl.php in ./twitter_status.tpl.php
Renders a tweet as it does look like at Twitter.com.
1 string reference to '_twitter_filter_hashtag'
twitter_filter_info in ./twitter.module
Implements hook_filter_info()

File

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

Code

function _twitter_filter_hashtag($text, $filter = NULL) {
  $prefix = '#';
  $destination = variable_get('twitter_search', TWITTER_SEARCH) . '/search?q=%23';
  return _twitter_filter_text($text, $prefix, $destination);
}