You are here

public function fieldable_panels_panes_handler_field_is_current::options_form in Fieldable Panels Panes (FPP) 7

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

Overrides views_handler_field::options_form

File

plugins/views/fieldable_panels_panes_handler_field_is_current.inc, line 60
Provide views handlers for fieldable panel panes.

Class

fieldable_panels_panes_handler_field_is_current
Field handler to display if the revision is current or not.

Code

public function options_form(&$form, &$form_state) {
  $form['current_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display if current'),
    '#default_value' => $this->options['current_text'],
  );
  $form['not_current_text'] = array(
    '#type' => 'textfield',
    '#title' => t('Text to display if not current'),
    '#default_value' => $this->options['not_current_text'],
  );
  parent::options_form($form, $form_state);
}