You are here

function _views_calc_format_options in Views Calc 5

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

Result format options

2 calls to _views_calc_format_options()
views_calc_field_form_item in ./views_calc.module
A form element for an individual calculated field.
_views_calc_format in ./views_calc.module

File

./views_calc.module, line 51
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_format_options() {
  $options = array(
    'none' => '',
    'integer' => 'intval',
    'decimal (1)' => 'number_format:1',
    'decimal (2)' => 'number_format:2',
    'shortdate' => 'format_date:small',
    'mediumdate' => 'format_date',
    'longdate' => 'format_date:large',
    'custom' => '',
  );
  return $options;
}