You are here

function views_handler_field_tweetbutton_user::render in Tweet Button 6

File

./tweetbutton_views_field_handlers.inc, line 109

Class

views_handler_field_tweetbutton_user

Code

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