You are here

class addtoany_handler_field_addtoany_link in AddToAny Share Buttons 6.3

Same name and namespace in other branches
  1. 6.2 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link
  2. 7.4 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link
  3. 7 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link
  4. 7.3 views/addtoany_handler_field_addtoany_link.inc \addtoany_handler_field_addtoany_link

Field handler to present AddToAny links.

Hierarchy

Expanded class hierarchy of addtoany_handler_field_addtoany_link

1 string reference to 'addtoany_handler_field_addtoany_link'
addtoany_views_data in views/addtoany.views.inc
Implementation of hook_views_data().

File

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

View source
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);
  }

}

Members