You are here

function views_aggregator_more_functions_views_aggregation_functions_info in Views Aggregator Plus 8

Same name and namespace in other branches
  1. 7 views_aggregator_more_functions/views_aggregator_more_functions.module \views_aggregator_more_functions_views_aggregation_functions_info()

Implements hook_views_aggregation_functions_info().

File

views_aggregator_more_functions/views_aggregator_more_functions.module, line 13
views_aggregator_more_functions.module

Code

function views_aggregator_more_functions_views_aggregation_functions_info() {
  $functions = [
    // By edc1, see https://www.drupal.org/node/2299055
    'views_aggregator_group_seq_number' => [
      'group' => t('Group sequence no. *'),
      'column' => t('Group count'),
      'is_renderable' => TRUE,
    ],
    // By JordiK, see https://www.drupal.org/node/3135233
    'views_aggregator_range_diff' => [
      'group' => t('Range difference'),
      'column' => t('Range difference'),
    ],
    // By RdeBoer.
    'views_aggregator_percentage' => [
      'group' => t('Percentage'),
      'column' => t('100%'),
      'is_renderable' => TRUE,
    ],
  ];
  return $functions;
}