get_value($values)) { return $this->render_sharethis_link($entity); } } function render_sharethis_link($entity) { $path = url('node/' . $entity->nid, ['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', [ 'data_options' => sharethis_get_options_array(), 'm_title' => $entity->title, 'm_path' => $path, ]); } }