function addtoany_handler_field_addtoany_link::render in AddToAny Share Buttons 7.4
Same name and namespace in other branches
- 6.3 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
- 6.2 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
- 7 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link::render()
- 7.3 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_node_buttons($entity);
}
}