You are here

select_translation.views.inc in Select translation 7

Same filename and directory in other branches
  1. 8 select_translation.views.inc

Views related hooks.

File

select_translation.views.inc
View source
<?php

/**
 * @file
 * Views related hooks.
 */

/**
 * Implements hook_views_data_alter().
 */
function select_translation_views_data_alter(&$cache) {
  $cache['node']['select_translation'] = array(
    'group' => t('Content translation'),
    'title' => t('Select translation'),
    'help' => t('For all the nodes representing a translation of the same content, only display one of the nodes'),
    'filter' => array(
      'handler' => 'select_translation_filter_handler',
    ),
  );
}

/**
 * Implements hook_views_handlers().
 */
function select_translation_views_handlers() {
  return array(
    'info' => array(
      'path' => drupal_get_path('module', 'select_translation'),
    ),
    'handlers' => array(
      'select_translation_filter_handler' => array(
        'parent' => 'views_handler_filter',
      ),
    ),
  );
}

Functions

Namesort descending Description
select_translation_views_data_alter Implements hook_views_data_alter().
select_translation_views_handlers Implements hook_views_handlers().