function views_calc_settings_form in Views Calc 7
Same name and namespace in other branches
- 5 views_calc.module \views_calc_settings_form()
- 6.3 views_calc.module \views_calc_settings_form()
- 6 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 170 - 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($form, &$form_state) {
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;
}