function addthis_handler_field_button::render in AddThis 6.3
File
- ./
addthis_handler_field.inc, line 37 - A handler to provide an AddThis button for a particular node.
Class
- addthis_handler_field_button
- @file A handler to provide an AddThis button for a particular node.
Code
function render($values) {
$nid = $values->{$this->aliases['nid']};
$title = $values->{$this->aliases['title']};
return theme('addthis_button', NULL, array(
'url' => url('node/' . $nid, array(
'absolute' => TRUE,
)),
'title' => check_plain($title),
));
}