function twitter_filter_info in Twitter 7.5
Same name and namespace in other branches
- 7.6 twitter.module \twitter_filter_info()
- 7.3 twitter.module \twitter_filter_info()
- 7.4 twitter.module \twitter_filter_info()
Implements hook_filter_info()
File
- ./
twitter.module, line 278 - Provides API integration with the Twitter microblogging service.
Code
function twitter_filter_info() {
$filters['twitter_username'] = array(
'title' => t('Twitter @username converter'),
'description' => t('Converts Twitter-style @usernames into links to Twitter account pages.'),
'process callback' => '_twitter_filter_username',
'tips callback' => '_twitter_filter_tip_username',
);
$filters['twitter_hashtag'] = array(
'title' => t('Twitter #hashtag converter'),
'description' => t('Converts Twitter-style #hashtags into links to twitter.com. Note: this converts all text prefixed by a "#" symbol into a hashtag link, so it can cause problems with other text.'),
'process callback' => '_twitter_filter_hashtag',
'tips callback' => '_twitter_filter_tip_hashtag',
);
$filters['twitter_links'] = array(
'title' => t('Twitter link converter'),
'description' => t('Makes links in Twitter messages to be opened in new windows and adds rel="nofollow" so these links do not penalize SEO.'),
'process callback' => '_twitter_filter_link',
'tips callback' => '_twitter_filter_tip_link',
);
$filters['twitter_embed'] = array(
'title' => t('Embed Tweets'),
'description' => t('Converts URLs for Twitter status updates into embedded Tweets. Should be sorted after the "Limit allowed HTML tags" filter, if used.'),
'process callback' => '_twitter_filter_embed_tweet',
'tips callback' => '_twitter_filter_tip_embed_tweet',
);
return $filters;
}