You are here

function addthis_handler_field_service_links::render in AddThis 7.2

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

./addthis_handler_field_service_links.inc, line 33

Class

addthis_handler_field_service_links
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);
  }
}