You are here

function lingotek_views_data in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lingotek.views.inc \lingotek_views_data()
  2. 7.5 lingotek.views.inc \lingotek_views_data()
  3. 7.6 lingotek.views.inc \lingotek_views_data()

Implements hook_views_data().

File

./lingotek.views.inc, line 11
Lingotek Module + Views

Code

function lingotek_views_data() {
  $data['node']['lingotek_source_status'] = array(
    'group' => 'Lingotek',
    'title' => t('Source Status (Unformatted)'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide the translation source status for a node.'),
      'handler' => 'lingotek_views_handler_source_status',
    ),
  );
  $data['node']['lingotek_source_status_formatted'] = array(
    'group' => 'Lingotek',
    'title' => t('Source Status (Formatted)'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide the translation source status for a node.'),
      'handler' => 'lingotek_views_handler_source_status_formatted',
    ),
  );
  $data['node']['lingotek_target_status'] = array(
    'group' => 'Lingotek',
    'title' => t('Translation Status (Unformatted)'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide the translation target status for a node.'),
      'handler' => 'lingotek_views_handler_target_status',
    ),
  );
  $data['node']['lingotek_target_status_formatted'] = array(
    'group' => 'Lingotek',
    'title' => t('Translation Status (Formatted)'),
    'help' => t('Lingotek Integration'),
    'real field' => 'nid',
    'field' => array(
      'help' => t('Provide the translation target status for a node.'),
      'handler' => 'lingotek_views_handler_target_status_formatted',
    ),
  );
  return $data;
}