You are here

views_aggregator.api.php in Views Aggregator Plus 7

Same filename and directory in other branches
  1. 8 views_aggregator.api.php

API documentation for Views Aggregator Plus module.

File

views_aggregator.api.php
View source
<?php

/**
 * @file
 * API documentation for Views Aggregator Plus module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Define your own group and column aggregation functions.
 *
 * @return array
 *   aggregation display names indexed by associated function name.
 */
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;
}

/**
 * Alter existing aggregation functions.
 *
 * @param array $aggregation_functions
 *   The aggregation functions currently defined.
 */
function hook_views_aggregation_functions_info_alter($aggregation_functions) {
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_views_aggregation_functions_info Define your own group and column aggregation functions.
hook_views_aggregation_functions_info_alter Alter existing aggregation functions.