You are here

function tweet_feed_views_data in Tweet Feed 7

Same name and namespace in other branches
  1. 6 inc/tweet_feed.views.inc \tweet_feed_views_data()

Implements hook_views_data().

File

./tweet_feed.views.inc, line 6

Code

function tweet_feed_views_data() {
  return array(
    'tweet_feed' => array(
      'table' => array(
        'group' => 'Twitter Feed',
        'base' => array(
          'field' => 'tid',
          'title' => 'Twitter Feed Posts',
          'weight' => -10,
        ),
      ),
      'tweet_id' => array(
        'title' => t('Tweet ID'),
        'help' => t('The Twitter Tweet ID of the tweet.'),
        'field' => array(
          'handler' => 'views_handler_field_numeric',
          'click sortable' => TRUE,
        ),
        'filter' => array(
          'handler' => 'views_handler_filter_numeric',
        ),
        'sort' => array(
          'handler' => 'views_handler_sort',
        ),
      ),
      'tweet' => array(
        'title' => t('Tweet Text'),
        'help' => t('The actual 140 character tweet text.'),
        'field' => array(
          'handler' => 'views_handler_tweet_field',
          'click sortable' => FALSE,
        ),
        'sort' => array(
          'handler' => 'views_handler_sort',
        ),
      ),
      'created_at' => array(
        'title' => t('Tweet Creation Time'),
        'help' => t('The creation time stamp of the tweet.'),
        'field' => array(
          'handler' => 'views_handler_field_date',
        ),
        'sort' => array(
          'handler' => 'views_handler_sort',
        ),
      ),
      'user_id' => array(
        'title' => t('User ID'),
        'help' => t('The user_id of the person making the tweet.'),
        'field' => array(
          'handler' => 'views_handler_field_numeric',
          'click sortable' => TRUE,
        ),
        'filter' => array(
          'handler' => 'views_handler_filter_numeric',
        ),
        'sort' => array(
          'handler' => 'views_handler_sort',
        ),
      ),
      'is_reply' => array(
        'title' => t('Is Reply'),
        'help' => t('Is this tweet a reply to another tweet?'),
        'field' => array(
          'handler' => 'views_handler_field_numeric',
          'click sortable' => TRUE,
        ),
        'filter' => array(
          'handler' => 'views_handler_filter_numeric',
        ),
        'sort' => array(
          'handler' => 'views_handler_sort',
        ),
      ),
      'profile_image_url' => array(
        'title' => t('Profile Image URL'),
        'help' => t('The url to the profile image of the tweeter.'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'profile_image_https_url' => array(
        'title' => t('Profile Image Secure URL'),
        'help' => t('The url to the profile image of the tweeter (secure url).'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'media_url' => array(
        'title' => t('Media Image URL'),
        'help' => t('The url to the media image for a tweet.'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'media_url_https' => array(
        'title' => t('Media Image Secure URL'),
        'help' => t('The url to the media image for a tweet (secure url).'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'screen_name' => array(
        'title' => t('Screen Name'),
        'help' => t('The screen name of the tweeter.'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'name' => array(
        'title' => t('Name'),
        'help' => t('The full name of the tweeter.'),
        'field' => array(
          'handler' => 'views_handler_field',
        ),
      ),
      'hashtags' => array(
        'title' => t('Hashtags'),
        'help' => t('The Hashtags associated with a tweet.'),
        'field' => array(
          'handler' => 'views_handler_hashtag_field',
        ),
        'argument' => array(
          'handler' => 'views_handler_argument_hashtag',
        ),
        'filter' => array(
          'handler' => 'views_handler_filter_hashtag_string',
        ),
      ),
    ),
  );
}