You are here

function views_calc_settings_form in Views Calc 6

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

FAPI settings_form.

1 string reference to 'views_calc_settings_form'
views_calc_menu in ./views_calc.module
Implements hook_menu().

File

./views_calc.module, line 164
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_settings_form() {
  drupal_set_title(t('Views Calc'));
  $operators = _views_calc_operators();
  $form['views_calc_operators'] = array(
    '#type' => 'textarea',
    '#default_value' => implode("\n", $operators),
    '#title' => t('Allowable functions and operators'),
    '#rows' => intval(sizeof($operators) + 2),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}