You are here

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

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

Provide link to license option

Overrides views_handler_field::options_form

File

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

Class

views_handler_field_fontyourface_license
Field handler to provide simple renderer that allows linking to a license.

Code

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