You are here

function rng_views_data_not in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x rng.views.inc \rng_views_data_not()

Implements hook_views_data().

File

./rng.views.inc, line 108
Provide views data for RNG.

Code

function rng_views_data_not() {
  $data['views']['table']['group'] = t('Custom Global');
  $data['views']['table']['join'] = [
    // #global is a special flag which allows a table to appear all the time.
    '#global' => [],
  ];
  $data['views']['registration_date_string_field'] = [
    'title' => t('Registration date string field'),
    'help' => t('Show the date string for a registration\'s event dates'),
    'field' => [
      'id' => 'registration_date_string_field',
    ],
  ];
  return $data;
}