You are here

function sharethis_views_data in ShareThis 8.2

Same name and namespace in other branches
  1. 6 sharethis.views.inc \sharethis_views_data()
  2. 7.2 views/sharethis.views.inc \sharethis_views_data()

Implements hook_views_data().

File

./sharethis.views.inc, line 11
Provide views data for tracker.module.

Code

function sharethis_views_data() {
  $data = [];

  // ShareThis link.
  $data['node']['sharethis_node'] = [
    'title' => t('ShareThis Link'),
    'help' => t('Link provided by the ShareThis service.'),
    'field' => [
      'id' => 'sharethis_node',
      'help' => t('Show Sharethis for a particular node.'),
    ],
  ];
  return $data;
}