You are here

function views_handler_field_tweetbutton_node::render in Tweet Button 6

File

./tweetbutton_views_field_handlers.inc, line 84

Class

views_handler_field_tweetbutton_node

Code

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