function simplenews_statistics_handler_opens::options_form in Simplenews Statistics 7.2
Same name and namespace in other branches
- 7 includes/views/handlers/simplenews_statistics_handler_opens.inc \simplenews_statistics_handler_opens::options_form()
Creates the form item for the options added.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ simplenews_statistics_handler_opens.inc, line 45 - Definition of simplenews_statistics_handler_opens.
Class
- simplenews_statistics_handler_opens
- Description.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
if ($this->real_field == 'open_rate') {
$form['open_rate_precision'] = array(
'#type' => 'textfield',
'#title' => t('Precision'),
'#default_value' => $this->options['open_rate_precision'],
'#description' => t('Number of decimal places to which the open rate should be calculated.'),
);
}
}