You are here

function twitter_views_handler_field_xss::option_definition in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  2. 6.2 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  3. 6.4 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  4. 7.6 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  5. 7.3 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  6. 7.4 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()
  7. 7.5 twitter_views_field_handlers.inc \twitter_views_handler_field_xss::option_definition()

File

./twitter_views_field_handlers.inc, line 7

Class

twitter_views_handler_field_xss
Process Twitter-style @usernames and URLs before filtering XSS.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['link_urls'] = array(
    'default' => TRUE,
  );
  $options['link_usernames'] = array(
    'default' => TRUE,
  );
  $options['link_hashtags'] = array(
    'default' => FALSE,
  );
  $options['hashtags_url'] = array(
    'default' => variable_get('twitter_search', TWITTER_SEARCH) . '/search?q=%23',
  );
  return $options;
}