function addtoany_handler_field_addtoany_link::render in AddToAny Share Buttons 7
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.4 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 17 - Views field handler for the AddToAny link field
Class
- addtoany_handler_field_addtoany_link
- Field handler to present AddToAny links.
Code
function render($values) {
$node = new stdClass();
$node->nid = $values->{$this->aliases['nid']};
$node->title = $values->{$this->aliases['title']};
return _addtoany_create_button($node, $teaser);
}