function commerce_product_attributes_handler_field_attributes::options_form in Commerce Product Attributes 7
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ commerce_product_attributes_handler_field_attributes.inc, line 30 - Attribute handler for the attribute field.
Class
- commerce_product_attributes_handler_field_attributes
- Field handler to present an order's operations links.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['show_link'] = array(
'#type' => 'checkbox',
'#title' => t('Link to Product'),
'#default_value' => $this->options['show_link'],
'#description' => t('Check this if the product title should be linked with the product display.'),
);
$form['link_with_line_item'] = array(
'#type' => 'checkbox',
'#title' => t('Link With Line Item'),
'#default_value' => $this->options['link_with_line_item'],
'#description' => t('Check this if link should contain the line item. This allow the editing of the line item by the customer.'),
);
}