You are here

function views_handler_field_tweetbutton_taxonomy::render in Tweet Button 6

File

./tweetbutton_views_field_handlers.inc, line 134

Class

views_handler_field_tweetbutton_taxonomy

Code

function render($values) {
  $tid = $values->{$this->aliases['tid']};
  $options['type'] = $this->options['tweetbutton_button'];
  $options['text'] = $this->options['tweetbutton_text'];
  $options['entity_type'] = $this->options['entity_type'];
  $options['url'] = url('taxonomy/term/' . $tid, array(
    'absolute' => TRUE,
  ));
  $output = theme('tweetbutton_display', taxonomy_get_term($tid), $options);
  return $output;
}