You are here

function alpha_pagination_token_info in Views Alpha Pagination 7.2

Same name and namespace in other branches
  1. 8.2 alpha_pagination.module \alpha_pagination_token_info()

Implements hook_token_info().

See also

\views_handler_area_alpha_pagination::getTokens()

1 call to alpha_pagination_token_info()
AlphaPagination::buildTokenTree in src/AlphaPagination.php
Builds a render array for displaying tokens.

File

./alpha_pagination.module, line 231
Module hooks and alters for the Views Alpha Pagination module.

Code

function alpha_pagination_token_info() {
  $info['types']['alpha_pagination'] = [
    'name' => t('Views Alpha Pagination'),
    'description' => t('Tokens related to the current alpha pagination display on the view.'),
    'needs-data' => 'alpha_pagination',
  ];
  $info['tokens']['alpha_pagination']['path'] = [
    'name' => t('Path'),
    'description' => t('The current path of the view (if page display) or current_path().'),
  ];
  $info['tokens']['alpha_pagination']['value'] = [
    'name' => t('Value'),
    'description' => t('The current character value.'),
  ];
  return $info;
}