function _twitter_filter_hashtag in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.module \_twitter_filter_hashtag()
- 7.3 twitter.module \_twitter_filter_hashtag()
- 7.4 twitter.module \_twitter_filter_hashtag()
- 7.5 twitter.module \_twitter_filter_hashtag()
Callback for Twitter #hashtag converter.
Parameters
string $text: The text to be filtered.
Return value
string The processed string.
2 calls to _twitter_filter_hashtag()
- 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 314 - Provides API integration with the Twitter microblogging service.
Code
function _twitter_filter_hashtag($text) {
$prefix = '#';
$destination = variable_get('twitter_search', TWITTER_SEARCH) . '/search?q=%23';
return _twitter_filter_text($text, $prefix, $destination, 'twitter-hashtag');
}