You are here

function theme_tweetbutton_display in Tweet Button 6

Same name and namespace in other branches
  1. 7 tweetbutton.module \theme_tweetbutton_display()
5 theme calls to theme_tweetbutton_display()
tweetbutton_link in ./tweetbutton.module
Implementation of hook_link
tweetbutton_nodeapi in ./tweetbutton.module
Implementation of hook_nodeapi()
views_handler_field_tweetbutton_node::render in ./tweetbutton_views_field_handlers.inc
views_handler_field_tweetbutton_taxonomy::render in ./tweetbutton_views_field_handlers.inc
views_handler_field_tweetbutton_user::render in ./tweetbutton_views_field_handlers.inc

File

./tweetbutton.module, line 185

Code

function theme_tweetbutton_display($entity_id, $options = array()) {
  global $_tweetbutton_init;
  $_tweetbutton_init = TRUE;
  $attributes = tweetbutton_get_attributes($entity_id, $options);
  $link = '<div class="tweetbutton"><a href="http://twitter.com/share" class="twitter-share-button" ' . drupal_attributes($attributes) . '>Tweet</a></div>';
  return $link;
}