You are here

public function CommerceProductInlineEntityFormController::settingsForm in Inline Entity Form 7

Overrides EntityInlineEntityFormController::settingsForm().

Overrides EntityInlineEntityFormController::settingsForm

File

includes/commerce_product.inline_entity_form.inc, line 127
Defines the inline entity form controller for Commerce Products.

Class

CommerceProductInlineEntityFormController
@file Defines the inline entity form controller for Commerce Products.

Code

public function settingsForm($field, $instance) {
  $form = parent::settingsForm($field, $instance);
  $form['autogenerate_title'] = array(
    '#type' => 'checkbox',
    '#title' => t('Auto generate the product title'),
    '#description' => t('This will hide the title input field and generate the title by appending any available attributes to the @entity title.', array(
      '@entity' => $instance['entity_type'],
    )),
    '#default_value' => $this->settings['autogenerate_title'],
  );
  return $form;
}