You are here

function sharethis_views_data in ShareThis 6

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

Implementation of hook_views_data().

File

./sharethis.views.inc, line 10
Views integration for sharethis.

Code

function sharethis_views_data() {

  // sharethis link
  $data['node']['sharethislink'] = array(
    'title' => t('ShareThis link'),
    // The item it appears as on the UI,
    'help' => t('Link provided by the ShareThis service.'),
    // The help that appears on the UI,
    'field' => array(
      'handler' => 'sharethis_handler_link',
      'click sortable' => FALSE,
    ),
  );
  return $data;
}