function hook_views_aggregation_functions_info in Views Aggregator Plus 8
Same name and namespace in other branches
- 7 views_aggregator.api.php \hook_views_aggregation_functions_info()
Define your own group and column aggregation functions.
Return value
array Aggregation display names indexed by associated function name.
2 functions implement hook_views_aggregation_functions_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- views_aggregator_more_functions_views_aggregation_functions_info in views_aggregator_more_functions/
views_aggregator_more_functions.module - Implements hook_views_aggregation_functions_info().
- views_aggregator_views_aggregation_functions_info in ./
views_aggregator_functions.inc - Implements hook_views_aggregation_functions_info().
1 invocation of hook_views_aggregation_functions_info()
- views_aggregator_get_aggregation_functions_info in ./
views_aggregator.module - Gets all available aggregation function definitions.
File
- ./
views_aggregator.api.php, line 19 - API documentation for Views Aggregator Plus module.
Code
function hook_views_aggregation_functions_info() {
$functions = [
'views_aggregator_variance' => [
'group' => t('Variance'),
// Use NULL for column, if not applicable.
'column' => t('Variance'),
// If your function operates on a numeric field, but the result is no
// longer a (single) number, for example when enumerating values, then the
// original renderer is not appropriate. In that case set this to FALSE.
// The default value is TRUE.
'is_renderable' => TRUE,
],
];
return $functions;
}