You are here

function views_handler_field_fontyourface_foundry::options_form in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.2 views/views_handler_field_fontyourface_foundry.inc \views_handler_field_fontyourface_foundry::options_form()
  2. 7 views/views_handler_field_fontyourface_foundry.inc \views_handler_field_fontyourface_foundry::options_form()

Provide link to font option

Overrides views_handler_field::options_form

File

modules/fontyourface_ui/views/views_handler_field_fontyourface_foundry.inc, line 38
Views handler.

Class

views_handler_field_fontyourface_foundry
Field handler to provide simple renderer that allows linking to a foundry.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['link_to_foundry'] = array(
    '#title' => t('Link this field'),
    '#type' => 'radios',
    '#options' => array(
      0 => t('No link'),
      'foundry_url' => t('To the foundry URL (if available)'),
    ),
    '#default_value' => $this->options['link_to_foundry'],
  );
}