5 * Provide views data and handlers for addthis.module
9 * Implementation of hook_views_data().
11 function addthis_views_data() {
12 // We're registering the 'custom_teasers' table.
13 $data['node']['addthis_button'] = array(
14 'title' => t('AddThis button'),
15 'help' => t('An AddThis button, associated with this node.'),
17 'handler' => 'addthis_handler_field_button',
20 $data['node']['addthis_toolbox'] = array(
21 'title' => t('AddThis toolbox'),
22 'help' => t('An AddThis toolbox, associated with this node.'),
24 'handler' => 'addthis_handler_field_toolbox',
31 * Implementation of hook_views_handlers().
33 function addthis_views_handlers() {
36 'path' => drupal_get_path('module', 'addthis'),
39 'addthis_handler_field_button' => array(
40 'parent' => 'views_handler_field',
41 'file' => 'addthis_handler_field.inc',
43 'addthis_handler_field_toolbox' => array(
44 'parent' => 'views_handler_field',
45 'file' => 'addthis_handler_field.inc',