You are here

function addthis_handler_field_toolbox::render in AddThis 6.3

File

./addthis_handler_field.inc, line 89
A handler to provide an AddThis button for a particular node.

Class

addthis_handler_field_toolbox
A handler to provide an AddThis toolbox for a particular node.

Code

function render($values) {
  $nid = $values->{$this->aliases['nid']};
  $title = $values->{$this->aliases['title']};
  $services = !empty($this->options['services']) ? $this->options['services'] : NULL;
  return theme('addthis_toolbox', $services, array(
    'url' => url('node/' . $nid, array(
      'absolute' => TRUE,
    )),
    'title' => check_plain($title),
  ));
}