public function BeanInlineEntityFormController::settingsForm in Bean (for Drupal 7) 7
Overrides EntityInlineEntityFormController::settingsForm().
Overrides EntityInlineEntityFormController::settingsForm
File
- includes/
bean.inline_entity_form.inc, line 50 - Defines the inline entity form controller for Nodes.
Class
- BeanInlineEntityFormController
- @file Defines the inline entity form controller for Nodes.
Code
public function settingsForm($field, $instance) {
$form = parent::settingsForm($field, $instance);
$form['parent_sync_label'] = array(
'#type' => 'checkbox',
'#title' => t('Auto set the block label to the parent @entity entity label', array(
'@entity' => $instance['entity_type'],
)),
'#description' => t('This will hide the label input field and set the label to the @entity entity label.', array(
'@entity' => $instance['entity_type'],
)),
'#default_value' => $this->settings['parent_sync_label'],
);
$form['parent_sync_title'] = array(
'#type' => 'checkbox',
'#title' => t('Auto set the block title to the parent @entity entity label', array(
'@entity' => $instance['entity_type'],
)),
'#description' => t('This will hide the title input field and set the title to the @entity entity label.', array(
'@entity' => $instance['entity_type'],
)),
'#default_value' => $this->settings['parent_sync_title'],
);
return $form;
}