You are here

function domain_views_handler_field_domain_id::options_form in Domain Access 6.2

Provide link to default domain option

File

domain_views/includes/domain_views_handler_field_domain_id.inc, line 34
Interface between domain_views.module and views.module.

Class

domain_views_handler_field_domain_id
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_domain_id'] = array(
    '#title' => t('Link this field to its domain by domain_id'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_domain_id']),
  );
  $form['link_to_sitename'] = array(
    '#title' => t('Link this field to its domain by sitename'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_sitename']),
  );
}