You are here

function addtoany_handler_field_addtoany_link::render in AddToAny Share Buttons 7.3

Same name and namespace in other branches
  1. 6.3 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
  2. 6.2 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
  3. 7.4 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
  4. 7 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field_node_link::render

File

views/addtoany_handler_field_addtoany_link.inc, line 12
Views field handler for the AddToAny link field

Class

addtoany_handler_field_addtoany_link
Field handler to present AddToAny links.

Code

function render($values) {
  if (($entity = $this
    ->get_value($values)) && node_access('view', $entity)) {
    return _addtoany_create_button($entity);
  }
}