addtoany_handler_field_addtoany_link.inc in AddToAny Share Buttons 6.2
Views field handler for the AddToAny link field
File
views/addtoany_handler_field_addtoany_link.incView source
<?php
/**
* @file
* Views field handler for the AddToAny link field
*/
/**
* Field handler to present AddToAny links.
*/
class addtoany_handler_field_addtoany_link extends views_handler_field_node_link {
function construct() {
parent::construct();
$this->additional_fields['title'] = 'title';
}
function render($values) {
$node = new stdClass();
$node->nid = $values->{$this->aliases['nid']};
$node->title = $values->{$this->aliases['title']};
return _addtoany_create_button($node, $teaser);
}
}
Classes
Name | Description |
---|---|
addtoany_handler_field_addtoany_link | Field handler to present AddToAny links. |