function tweetbutton_hashtag_get_attributes in Tweet Button 7.2
Same name and namespace in other branches
- 8 tweetbutton.module \tweetbutton_hashtag_get_attributes()
1 call to tweetbutton_hashtag_get_attributes()
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',
);
}