You are here

addtoany_handler_field_addtoany_link.inc in AddToAny Share Buttons 6.3

Views field handler for the AddToAny link field

File

views/addtoany_handler_field_addtoany_link.inc
View 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

Namesort descending Description
addtoany_handler_field_addtoany_link Field handler to present AddToAny links.