You are here

function views_conditional_views_data in Views Conditional 8

Same name and namespace in other branches
  1. 7 includes/views/views_conditional.views.inc \views_conditional_views_data()

Implements hook_views_data().

File

./views_conditional.views.inc, line 11
Include file for defining views handlers and data.

Code

function views_conditional_views_data() {
  $data['views_conditional']['table']['group'] = t('Views');
  $data['views_conditional']['table']['join'] = [
    '#global' => [],
  ];
  $data['views_conditional']['views_conditional_field'] = [
    'title' => t('Views Conditional'),
    'field' => [
      'title' => t('Views Conditional'),
      'help' => t('Output data based off of certain criteria.'),
      'id' => 'views_conditional_field',
    ],
  ];
  return $data;
}