You are here

public function TMGMTDefaultSourceViewsController::views_data in Translation Management Tool 7

Defines the result for hook_views_data().

Overrides TMGMTSourceViewsControllerInterface::views_data

1 method overrides TMGMTDefaultSourceViewsController::views_data()
TMGMTNodeSourceViewsController::views_data in sources/node/views/tmgmt_node.views.inc
Defines the result for hook_views_data().

File

views/tmgmt.views.inc, line 155
Contains Views controllers for the translation management module.

Class

TMGMTDefaultSourceViewsController
Vies controller class for source plugins.

Code

public function views_data() {

  // @todo Implement this in a generic fashion.

  /* $key = $this->pluginInfo['something'];
     $data[$key]['tmgmt_translatable_types'] = array(
       'title' => t('Translatable types'),
       'help' => t('Filter translatable elements based on their types.'),
       'filter' => array(
         'handler' => 'views_handler_filter_in_operator',
         'real field' => 'type',
         'options callback' => 'tmgmt_source_translatable_item_types',
         'options arguments' => array($this->pluginType),
       ),
     ); */
  return array();
}