You are here

function simplenews_statistics_handler_clicks::options_form in Simplenews Statistics 7.2

Same name and namespace in other branches
  1. 7 includes/views/handlers/simplenews_statistics_handler_clicks.inc \simplenews_statistics_handler_clicks::options_form()

Creates the form item for the options added.

Overrides views_handler_field::options_form

File

includes/views/handlers/simplenews_statistics_handler_clicks.inc, line 45
Definition of simplenews_statistics_handler_clicks.

Class

simplenews_statistics_handler_clicks
Description.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  if ($this->real_field == 'ctr') {
    $form['ctr_precision'] = array(
      '#type' => 'textfield',
      '#title' => t('Precision'),
      '#default_value' => $this->options['ctr_precision'],
      '#description' => t('Number of decimal places to which the click-through rate should be calculated.'),
    );
  }
}