You are here

lingotek.views.inc in Lingotek Translation 7.6

Same filename and directory in other branches
  1. 7.7 lingotek.views.inc
  2. 7.4 lingotek.views.inc
  3. 7.5 lingotek.views.inc

Lingotek Module + Views

File

lingotek.views.inc
View source
<?php

/**
 * @file
 * Lingotek Module + Views
 */

/**
 * Implements hook_views_data().
 */
function lingotek_views_data() {
  $data['node']['lingotek_workbench_link'] = array(
    'group' => 'Lingotek',
    'title' => t('Workbench Link'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide a link to the Lingotek Workbench so that a user may translate the node.'),
      'handler' => 'lingotek_views_handler_workbench_link',
    ),
  );
  $data['comments']['lingotek_workbench_link'] = array(
    'group' => 'Lingotek',
    'title' => t('Workbench Link'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide a link to the Lingotek Workbench so that a user may translate the node.'),
      'handler' => 'lingotek_views_handler_workbench_link',
    ),
  );
  return $data;
}

Functions

Namesort descending Description
lingotek_views_data Implements hook_views_data().