You are here

function tweetbutton_hashtag_get_attributes in Tweet Button 7.2

Same name and namespace in other branches
  1. 8 tweetbutton.module \tweetbutton_hashtag_get_attributes()
1 call to tweetbutton_hashtag_get_attributes()
theme_tweetbutton_hashtag_display in ./tweetbutton.module

File

./tweetbutton.module, line 443

Code

function tweetbutton_hashtag_get_attributes($options) {
  global $language;
  $default_options = array(
    'rel_account' => variable_get('tweetbutton_account'),
  );
  $options += $default_options;
  $attributes = array(
    'data-related' => $options['rel_account'],
    'data-lang' => $options['language'] == 'auto' ? $language->language : $options['language'],
    'class' => 'twitter-hashtag-button',
  );
}