You are here

function panelizer_handler_panelizer_status::options_form in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/views/panelizer_handler_panelizer_status.inc \panelizer_handler_panelizer_status::options_form()

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

Overrides views_handler_field::options_form

File

plugins/views/panelizer_handler_panelizer_status.inc, line 14

Class

panelizer_handler_panelizer_status
Views field handler for rendering node links that point to panelizer tabs.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['custom'] = array(
    '#type' => 'textfield',
    '#title' => t('Customized text'),
    '#default_value' => $this->options['custom'],
    '#description' => t('Text to display if the entity has a custom panel.'),
  );
  $form['not_panelized'] = array(
    '#type' => 'textfield',
    '#title' => t('Not panelized text'),
    '#default_value' => $this->options['not_panelized'],
    '#description' => t('Text to display if the entity is not panelized.'),
  );
}