You are here

function _views_calc_replacements in Views Calc 5

Same name and namespace in other branches
  1. 6.3 views_calc.module \_views_calc_replacements()
  2. 6 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
Validate the views calc settings

File

./views_calc.module, line 537
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);
}