addthis.views.inc in AddThis 7.2
Same filename and directory in other branches
Provide views data and handlers for addthis.module
File
addthis.views.incView source
<?php
/**
 * @file
 * Provide views data and handlers for addthis.module
 */
/**
 * Implementation of hook_views_data().
 */
function addthis_views_data() {
  // We're registering the 'custom_teasers' table.
  $data['node']['addthis'] = array(
    'title' => t('AddThis'),
    'help' => t('An <a href="http://www.addthis.com/">AddThis</a> button.'),
    'field' => array(
      'handler' => 'addthis_handler_field_service_links',
    ),
  );
  return $data;
}
/**
 * Implementation of hook_views_handlers().
 */
function addthis_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'addthis'),
    ),
    'handlers' => array(
      'addthis_handler_field_service_links' => array(
        'parent' => 'views_handler_field',
      ),
    ),
  );
}Functions
| Name   | Description | 
|---|---|
| addthis_views_data | Implementation of hook_views_data(). | 
| addthis_views_handlers | Implementation of hook_views_handlers(). | 
