addtoany.views.inc 470 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Views integration for AddToAny.
  5. */
  6. /**
  7. * Implements hook_views_data_alter().
  8. */
  9. function addtoany_views_data_alter(array &$data) {
  10. // Add the addtoany link to the node fields.
  11. $data['node']['addtoany_share'] = [
  12. 'title' => t('AddToAny share buttons'),
  13. 'field' => [
  14. 'title' => t('AddToAny share buttons'),
  15. 'help' => t('Provide share buttons for sharing the content.'),
  16. 'id' => 'node_addtoany_share',
  17. ],
  18. ];
  19. }