You are here

addtoany.views.inc in AddToAny Share Buttons 7

Views integration for AddToAny.

File

views/addtoany.views.inc
View source
<?php

/**
 * @file
 * Views integration for AddToAny.
 */

/**
 * Implementation of hook_views_data().
 */
function addtoany_views_data() {

  // Add the addtoany link to the node fields
  $data['node']['addtoany_link'] = array(
    'title' => t('AddToAny link'),
    'help' => t('Link provided by the AddToAny module'),
    'group' => t('Node'),
    'field' => array(
      'handler' => 'addtoany_handler_field_addtoany_link',
      'click sortable' => FALSE,
    ),
  );
  return $data;
}

Functions

Namesort descending Description
addtoany_views_data Implementation of hook_views_data().