function views_handler_cumulative_field::options_form in Views Cumulative Field 7
Make changes to the field settings form seen by the end user when adding your field.
Overrides views_handler_field_numeric::options_form
File
- includes/
views_handler_cumulative_field.inc, line 42 - Custom views handler definition.
Class
- views_handler_cumulative_field
- Custom handler class.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['data_field'] = array(
'#type' => 'radios',
'#title' => t('Data Field'),
'#options' => $this->view->display_handler
->get_field_labels(),
'#default_value' => $this->options['data_field'],
'#description' => t('Select the field for which to calculate the cumulative value.'),
'#weight' => -10,
);
}