1 block_legacy.class.inc BlockLegacy::form(&$form, &$form_state)

Build the settings form for editing this block.

Overrides Block::form

File

core/modules/layout/includes/block_legacy.class.inc, line 65
Class that wraps around legacy hook_block_view/config/save() hooks.

Class

BlockLegacy
@file Class that wraps around legacy hook_block_view/config/save() hooks.

Code

function form(&$form, &$form_state) {
  parent::form($form, $form_state);

  // Load the legacy block form into block_settings.
  $block_form = module_invoke($this->module, 'block_configure', $this->delta, $this->settings['block_settings']);
  if ($block_form) {
    $form['block_settings'] = array(
      '#type' => 'container',
      '#id' => 'layout-block-settings',
    );
    $form['block_settings'] = array_merge($form['block_settings'], $block_form);
  }
}