You are here

yashare.views.inc in Yandex.Share 7.2

Implements views.inc with hook_views_data.

File

views/yashare.views.inc
View source
<?php

/**
 * @file
 * Implements views.inc with hook_views_data.
 */

/**
 * Implements hook_views_data().
 */
function yashare_views_data() {
  $data = array();
  foreach (entity_get_info() as $name => $type) {
    if ($name == 'node' || ($name = 'taxonomy_term')) {
      $data[$type['base table']]['yashare'] = array(
        'title' => t('Yandex.Share'),
        'help' => t('Yandex.Share widget.'),
        'field' => array(
          'handler' => 'yashare_handler_field_yashare',
          'click sortable' => FALSE,
        ),
      );
    }
  }
  return $data;
}

Functions

Namesort descending Description
yashare_views_data Implements hook_views_data().