You are here

function _views_calc_replacements in Views Calc 6

Same name and namespace in other branches
  1. 5 views_calc.module \_views_calc_replacements()
  2. 6.3 views_calc.module \_views_calc_replacements()
  3. 7 views_calc.module \_views_calc_replacements()

An array of allowable calculation values.

1 call to _views_calc_replacements()
views_calc_fields_form_validate in ./views_calc.module
FAPI fields_form validate.

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_replacements() {
  $operators = array_filter(_views_calc_operators(), 'trim');
  $numbers = range(0, 9);
  return array_merge($operators, $numbers);
}