You are here

public function CommerceLicenseInlineEntityFormController::settingsForm in Commerce License 7

Overrides EntityInlineEntityFormController::settingsForm().

Overrides EntityInlineEntityFormController::settingsForm

File

includes/commerce_license.inline_entity_form.inc, line 13
Defines the IEF controller for the commerce_license entity type.

Class

CommerceLicenseInlineEntityFormController
@file Defines the IEF controller for the commerce_license entity type.

Code

public function settingsForm($field, $instance) {
  $form = parent::settingsForm($field, $instance);

  // Adding existing entities is not supported for licenses.
  $form['allow_existing']['#access'] = FALSE;
  $form['match_operator']['#access'] = FALSE;
  return $form;
}