You are here

function alpha_pagination_views_data in Views Alpha Pagination 8.2

Same name and namespace in other branches
  1. 7.2 alpha_pagination.module \alpha_pagination_views_data()
  2. 7 views/alpha_pagination.views.inc \alpha_pagination_views_data()

Implements hook_views_data().

File

./alpha_pagination.views.inc, line 13
Contains alpha_pagination\alpha_pagination.views.inc.

Code

function alpha_pagination_views_data() {
  $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']['alpha_pagination'] = [
    'title' => t('Alpha Pagination'),
    'help' => t('Adds alphanumeric pagination.'),
    'area' => [
      'id' => 'alpha_pagination',
    ],
  ];
  $data['views']['alpha_pagination_group'] = [
    'title' => t('Alpha Pagination'),
    'help' => t('Adds an automated field that can be used to group by the alphanumeric pagination prefix.'),
    'field' => [
      'id' => 'alpha_pagination_group',
    ],
  ];
  return $data;
}