You are here

tweetbutton.views.inc in Tweet Button 7

Same filename and directory in other branches
  1. 6 tweetbutton.views.inc

File

tweetbutton.views.inc
View source
<?php

/**
 * Implements of hook_views_data_alter().
 */
function tweetbutton_views_data() {
  $data = array();
  $data['tweetbutton']['table']['group'] = t('tweet button');
  $data['tweetbutton']['table']['join'] = array(
    '#global' => array(),
  );
  $data['tweetbutton']['tweetbutton'] = array(
    'group' => t('tweet button'),
    'field' => array(
      'title' => t('Tweet Button'),
      'help' => t('Tweet button for this node.'),
      'handler' => 'tweetbutton_handler_field_tweet',
    ),
  );
  return $data;
}

/**
 * Implements of hook_views_handlers().
 */
function tweetbutton_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'tweetbutton'),
    ),
    'handlers' => array(
      'tweetbutton_handler_field_tweet' => array(
        'parent' => 'views_handler_field_node',
      ),
    ),
  );
}

Functions

Namesort descending Description
tweetbutton_views_data Implements of hook_views_data_alter().
tweetbutton_views_handlers Implements of hook_views_handlers().