function google_analytics_reports_handler_filter::options_form in Google Analytics Reports 7.3
Provide the basic form which calls through to subforms.
If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
Overrides views_handler_filter::options_form
File
- handlers/
google_analytics_reports_handler_filter.inc, line 51 - Definition of google_analytics_reports_handler_filter.
Class
- google_analytics_reports_handler_filter
- Provides base filter functionality for Google Analytics fields.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
if ($this->is_custom) {
$form['custom_field_number'] = array(
'#type' => 'textfield',
'#title' => t('Custom field number'),
'#default_value' => isset($this->options['custom_field_number']) ? $this->options['custom_field_number'] : 1,
'#size' => 2,
'#maxlength' => 2,
'#required' => TRUE,
'#element_validate' => array(
'element_validate_integer_positive',
),
);
}
}