You are here

function commerce_product_handler_field_product::options_form in Commerce Core 7

Provide the link to product option.

Overrides views_handler_field::options_form

1 call to commerce_product_handler_field_product::options_form()
commerce_product_handler_field_product_type::options_form in modules/product/includes/views/handlers/commerce_product_handler_field_product_type.inc
Provide the link to product option.
1 method overrides commerce_product_handler_field_product::options_form()
commerce_product_handler_field_product_type::options_form in modules/product/includes/views/handlers/commerce_product_handler_field_product_type.inc
Provide the link to product option.

File

modules/product/includes/views/handlers/commerce_product_handler_field_product.inc, line 31
Contains the basic product field handler.

Class

commerce_product_handler_field_product
Field handler to provide simple renderer that allows linking to a product.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['link_to_product'] = array(
    '#title' => t("Link this field to the product's administrative view page"),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['link_to_product']),
  );
}