summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfacine2013-06-04 19:29:52 (GMT)
committer Juampy2013-06-04 19:29:52 (GMT)
commit314b123ab82922fca53747bae33846298dd6d039 (patch)
tree070ef0eec0da43de6dddcf43c12108249041713d
parent85aa960a53cef9220c0efa8c5f43b70818ed2765 (diff)
Issue #2011960 by facine: [Drupal 8] Update the definitions of the filters.
-rw-r--r--twitter.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/twitter.module b/twitter.module
index bd5ba11..c6310cc 100644
--- a/twitter.module
+++ b/twitter.module
@@ -243,12 +243,14 @@ 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.'),
+ 'type' => FILTER_TYPE_TRANSFORM_IRREVERSIBLE,
'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 hashtags.org.'),
+ 'type' => FILTER_TYPE_TRANSFORM_IRREVERSIBLE,
'process callback' => '_twitter_filter_hashtag',
'tips callback' => '_twitter_filter_tip_hashtag',
);
@@ -256,6 +258,7 @@ function twitter_filter_info() {
'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.'),
+ 'type' => FILTER_TYPE_TRANSFORM_IRREVERSIBLE,
'process callback' => '_twitter_filter_link',
'tips callback' => '_twitter_filter_tip_link',
);