function tweetbutton_follow_get_attributes in Tweet Button 7.2        
                          
                  
                        Same name and namespace in other branches
- 8 tweetbutton.module \tweetbutton_follow_get_attributes()
- 7 tweetbutton.module \tweetbutton_follow_get_attributes()
1 call to tweetbutton_follow_get_attributes()
  - theme_tweetbutton_follow_display in ./tweetbutton.module
File
 
   - ./tweetbutton.module, line 402
Code
function tweetbutton_follow_get_attributes($options) {
  global $language;
  $default_options = array(
    'show_count' => variable_get('tweetbutton_follow_show_count', TRUE),
    'show_screen_name' => variable_get('tweetbutton_follow_screen_name'),
    'size' => variable_get('tweetbutton_follow_size'),
    'language' => variable_get('tweetbutton_language'),
  );
  $options += $default_options;
  $attributes = array(
    'data-show-count' => $options['show_count'] ? 'true' : 'false',
    'data-show-screen-name' => $options['show_screen_name'],
    'data-size' => $options['size'],
    'data-lang' => $options['language'] == 'auto' ? $language->language : $options['language'],
    'class' => 'twitter-follow-button',
  );
  return $attributes;
}