You are here

function hook_views_aggregation_functions_info in Views Aggregator Plus 7

Same name and namespace in other branches
  1. 8 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
Get 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 = array(
    'views_aggregator_variance' => array(
      'group' => t('Variance'),
      'column' => t('Variance'),
      // Use NULL if not applicable.
      // 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.
      'is_renderable' => TRUE,
    ),
  );
  return $functions;
}