You are here

function addthis_views_data in AddThis 6.3

Same name and namespace in other branches
  1. 6.2 addthis.views.inc \addthis_views_data()
  2. 7.2 addthis.views.inc \addthis_views_data()

Implementation of hook_views_data().

File

./addthis.views.inc, line 11
Provide views data and handlers for addthis.module

Code

function addthis_views_data() {

  // We're registering the 'custom_teasers' table.
  $data['node']['addthis_button'] = array(
    'title' => t('AddThis button'),
    'help' => t('An AddThis button, associated with this node.'),
    'field' => array(
      'handler' => 'addthis_handler_field_button',
    ),
  );
  $data['node']['addthis_toolbox'] = array(
    'title' => t('AddThis toolbox'),
    'help' => t('An AddThis toolbox, associated with this node.'),
    'field' => array(
      'handler' => 'addthis_handler_field_toolbox',
    ),
  );
  return $data;
}