You are here

public function commerce_kickstart_taxonomy_handler_field_text::options_form in Commerce Kickstart 7.2

Provide a options form for this handler.

Overrides entity_views_handler_field_text::options_form

File

modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/handlers/commerce_kickstart_taxonomy_handler_field_text.inc, line 28
Contains the commerce_kickstart_taxonomy_handler_field_text class.

Class

commerce_kickstart_taxonomy_handler_field_text
Extend the entity_views_handler_field_text to add needed enhancements.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['replace_spaces'] = array(
    '#type' => 'checkbox',
    '#title' => t('Replace spaces with dashes'),
    '#default_value' => $this->options['replace_spaces'],
  );
}