function redirect_handler_field_redirect_redirect::options_form in Redirect 7.2
Same name and namespace in other branches
- 7 views/redirect_handler_field_redirect_redirect.inc \redirect_handler_field_redirect_redirect::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- views/
redirect_handler_field_redirect_redirect.inc, line 23 - Redirect field handler for {redirect}.redirect.
Class
- redirect_handler_field_redirect_redirect
- @file Redirect field handler for {redirect}.redirect.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// This field will never be empty
$form['empty']['#access'] = FALSE;
$form['empty_zero']['#access'] = FALSE;
$form['hide_empty']['#access'] = FALSE;
$form['alter']['make_link']['#description'] = t('If checked, this field will be made into a link.');
$form['alter']['absolute']['#access'] = FALSE;
$form['alter']['path']['#access'] = FALSE;
$form['text'] = array(
'#type' => 'textfield',
'#title' => t('Text to display'),
'#default_value' => $this->options['text'],
);
$form['absolute'] = array(
'#type' => 'checkbox',
'#title' => t('Use absolute link (begins with "http://")'),
'#default_value' => $this->options['absolute'],
'#description' => t('If you want to use this as in <em>output this field as link</em> in <em>link path</em>, you have to enable this option.'),
);
}