You are here

function addthis_handler_field_service_links::render in AddThis 6.2

Same name and namespace in other branches
  1. 7.2 addthis_handler_field_service_links.inc \addthis_handler_field_service_links::render()

File

./addthis_handler_field_service_links.inc, line 34
A handler to provide an AddThis field for a particular node.

Class

addthis_handler_field_service_links
@file A handler to provide an AddThis field for a particular node.

Code

function render($values) {
  if (user_access('view addthis')) {
    $node = new stdClass();
    $node->nid = $values->{$this->aliases['nid']};
    $node->title = $values->{$this->aliases['title']};
    return _addthis_create_button($node, TRUE);
  }
}