You are here

function commerce_product_handler_area_empty_text::options_form in Commerce Core 7

Default options form that provides the label widget that all fields should have.

Overrides views_handler_area::options_form

File

modules/product/includes/views/handlers/commerce_product_handler_area_empty_text.inc, line 17

Class

commerce_product_handler_area_empty_text
Area handler to display the empty text message for products.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['add_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Path to a product add form'),
    '#description' => t('Provide the path to a product add form to link to in the empty message. If blank, no link will be included.'),
    '#default_value' => $this->options['add_path'],
  );
}