function uc_cart_handler_field_cart_user::options_form in Ubercart 7.3
Overrides views_handler::options_form().
Provides link to node option.
Overrides views_handler_field::options_form
File
- uc_cart/
views/ uc_cart_handler_field_cart_user.inc, line 42 - Views field handler.
Class
- uc_cart_handler_field_cart_user
- Field handler: allows linking to a user from a cart id.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_user'] = array(
'#title' => t('Link this field to its user'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => $this->options['link_to_user'],
);
$form['overwrite_anonymous'] = array(
'#title' => t('Overwrite the value to display for anonymous users'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['overwrite_anonymous']),
'#description' => t('If selected, you will see a field to enter the text to use for anonymous users.'),
);
$form['anonymous_text'] = array(
'#title' => t('Text to display for anonymous users'),
'#type' => 'textfield',
'#default_value' => $this->options['anonymous_text'],
'#dependency' => array(
'edit-options-overwrite-anonymous' => array(
1,
),
),
);
}