function commerce_file_handler_field_license_duration::options_form in Commerce File 7
Default options form provides the label widget that all fields should have.
Overrides commerce_file_handler_field_license_property::options_form
File
- views/
handlers/ commerce_file_handler_field_license_duration.inc, line 21 - Field handler for a license duration.
Class
- commerce_file_handler_field_license_duration
- Field handler for license duration.
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'],
);
}