You are here

function views_handler_field_fontyourface_font::options_form in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 views/views_handler_field_fontyourface_font.inc \views_handler_field_fontyourface_font::options_form()
  2. 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_font.inc \views_handler_field_fontyourface_font::options_form()

Provide link to font option

Overrides views_handler_field::options_form

File

views/views_handler_field_fontyourface_font.inc, line 39
Views handler.

Class

views_handler_field_fontyourface_font
Field handler to provide simple renderer that allows linking to a font.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['link_to_font'] = array(
    '#title' => t('Link this field'),
    '#type' => 'radios',
    '#options' => array(
      0 => t('No link'),
      'edit' => t('To the font edit page'),
    ),
    '#default_value' => $this->options['link_to_font'],
  );
  $form['display_as'] = array(
    '#title' => t('Display as'),
    '#type' => 'radios',
    '#options' => array(
      0 => t('Plain text'),
      'preview' => t('Font preview'),
    ),
    '#default_value' => $this->options['display_as'],
  );
}