function views_calc_settings_form in Views Calc 5
Same name and namespace in other branches
- 6.3 views_calc.module \views_calc_settings_form()
- 6 views_calc.module \views_calc_settings_form()
- 7 views_calc.module \views_calc_settings_form()
Implementation of hook_settings()
1 string reference to 'views_calc_settings_form'
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;
}