get_value($values)) { return $this->renderSharethisLink($entity); } } /** * Renders sharethis link. */ public function renderSharethisLink($entity) { $path = url('node/' . $entity->nid, array('absolute' => TRUE)); // @todo // The line below requires theming of the sharethis button HTML as described // in http://drupal.org/node/1335836 . Once the theming issue is resolved, // this line can be uncommented/modified to implement that functionality. return theme('sharethis', array( 'data_options' => sharethis_get_options_array(), 'm_title' => $entity->title, 'm_path' => $path, )); } }