You are here

function addtoany_views_data_alter in AddToAny Share Buttons 8

Implements hook_views_data_alter().

File

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

Code

function addtoany_views_data_alter(array &$data) {

  // Add the addtoany link to the node fields.
  $data['node']['addtoany_share'] = [
    'title' => t('AddToAny share buttons'),
    'field' => [
      'title' => t('AddToAny share buttons'),
      'help' => t('Provide share buttons for sharing the content.'),
      'id' => 'node_addtoany_share',
    ],
  ];
}