You are here

function views_calc_field_handler in Views Calc 5

The field handler. Used to format the calculation results

1 string reference to 'views_calc_field_handler'
views_calc_views_tables in ./views_calc.module
Implementation of hook_views_tables.

File

./views_calc.module, line 447
This module will allow you to add calculated fields to views tables and compute (SUM, COUNT, AVG, etc) columns of numeric data in a views table.

Code

function views_calc_field_handler(&$field, &$fieldinfo, $value, $data) {
  return _views_calc_format($value, $field['format'], $field['custom']);
}