You are here

class sharethis_handler_link in ShareThis 6

Field handler to present a link node edit.

Hierarchy

Expanded class hierarchy of sharethis_handler_link

1 string reference to 'sharethis_handler_link'
sharethis_views_data in ./sharethis.views.inc
Implementation of hook_views_data().

File

./sharethis_handler_link.inc, line 5

View source
class sharethis_handler_link extends views_handler_field_node_link {
  function construct() {
    parent::construct();
    $this->additional_fields['title'] = 'title';
  }
  function render($values) {
    $node = new stdClass();
    $node->nid = $values->{$this->aliases['nid']};
    $node->title = $values->{$this->aliases['title']};
    return theme('sharethis', $node->title, 'node/' . $node->nid);
  }

}

Members