You are here

public function EntityInlineEntityFormController::defaultSettings in Inline Entity Form 7

Returns an array of default settings in the form of key => value.

3 calls to EntityInlineEntityFormController::defaultSettings()
CommerceLineItemInlineEntityFormController::defaultSettings in includes/commerce_line_item.inline_entity_form.inc
Overrides EntityInlineEntityFormController::defaultSettings().
CommerceProductInlineEntityFormController::defaultSettings in includes/commerce_product.inline_entity_form.inc
Overrides EntityInlineEntityFormController::defaultSettings().
EntityInlineEntityFormController::__construct in includes/entity.inline_entity_form.inc
2 methods override EntityInlineEntityFormController::defaultSettings()
CommerceLineItemInlineEntityFormController::defaultSettings in includes/commerce_line_item.inline_entity_form.inc
Overrides EntityInlineEntityFormController::defaultSettings().
CommerceProductInlineEntityFormController::defaultSettings in includes/commerce_product.inline_entity_form.inc
Overrides EntityInlineEntityFormController::defaultSettings().

File

includes/entity.inline_entity_form.inc, line 142
Defines the base inline entity form controller.

Class

EntityInlineEntityFormController
@file Defines the base inline entity form controller.

Code

public function defaultSettings() {
  $defaults = array();
  $defaults['allow_new'] = TRUE;
  $defaults['allow_existing'] = FALSE;
  $defaults['match_operator'] = 'CONTAINS';
  $defaults['allow_clone'] = FALSE;
  $defaults['delete_references'] = FALSE;
  $labels = $this
    ->defaultLabels();
  $defaults['override_labels'] = FALSE;
  $defaults['label_singular'] = $labels['singular'];
  $defaults['label_plural'] = $labels['plural'];
  return $defaults;
}