You are here

function views_calc_settings_form in Views Calc 5

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

Implementation of hook_settings()

1 string reference to 'views_calc_settings_form'
views_calc_menu in ./views_calc.module

File

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