You are here

function commerce_file_handler_field_license_expiration::options_form in Commerce File 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_date::options_form

File

views/handlers/commerce_file_handler_field_license_expiration.inc, line 26
Field handler for a license expiration.

Class

commerce_file_handler_field_license_expiration
Field handler for license expiration.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['unlimited_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display for unlimited duration'),
    '#default_value' => $this->options['unlimited_text'],
  );
}