You are here

function views_calc_cols_form_submit in Views Calc 5

Save the views calc column settings.

File

./views_calc.module, line 383
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_cols_form_submit($form_id, $form_values) {
  $edit = $form_values;
  foreach ($edit as $name => $value) {
    variable_set($name, $value);
  }
  drupal_set_message(t('Views Calc columns were updated.'));
}