1 views_handler_field_time_interval.inc | views_handler_field_time_interval::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- core/
modules/ views/ handlers/ views_handler_field_time_interval.inc, line 21 - Definition of views_handler_field_time_interval.
Class
- views_handler_field_time_interval
- A handler to provide proper displays for time intervals.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['granularity'] = array(
'#type' => 'textfield',
'#title' => t('Granularity'),
'#description' => t('How many different units to display in the string.'),
'#default_value' => $this->options['granularity'],
);
}