You are here

function addtoany_views_data in AddToAny Share Buttons 7.4

Same name and namespace in other branches
  1. 6.3 views/addtoany.views.inc \addtoany_views_data()
  2. 6.2 views/addtoany.views.inc \addtoany_views_data()
  3. 7 views/addtoany.views.inc \addtoany_views_data()
  4. 7.3 views/addtoany.views.inc \addtoany_views_data()

Implementation of hook_views_data().

File

views/addtoany.views.inc, line 11
Views integration for AddToAny.

Code

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('Content'),
    'field' => array(
      'handler' => 'addtoany_handler_field_addtoany_link',
      'click sortable' => FALSE,
    ),
  );
  return $data;
}