function domain_views_handler_field_domain_access_sitename::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_access_sitename.inc, line 35 - Interface between domain_views.module and views.module.
Class
- domain_views_handler_field_domain_access_sitename
- 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_default_domain'] = array(
'#title' => t('Link this field to default domain'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_default_domain']),
);
$form['link_to_original_domain'] = array(
'#title' => t('Link this field to the domain it originates from'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_original_domain']),
);
// Only list the node links if this is a node view.
if ($this->view->base_table == 'node') {
$form['list_all_domains'] = array(
'#title' => t('List all domains this node is published to'),
'#description' => t('This will override the default setting to show only one domain.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['list_all_domains']),
);
}
}