You are here

function domain_views_handler_field_domain_subdomain::options_form in Domain Views 7

Provide link to default domain option

Overrides views_handler_field::options_form

File

includes/domain_views_handler_field_domain_subdomain.inc, line 32
Interface between domain_views.module and views.module.

Class

domain_views_handler_field_domain_subdomain
Field handler to provide simple renderer that allows linking to a domain.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['link_to_site'] = array(
    '#title' => t('Link this field to its domain'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_site']),
  );
}