1 layout.admin.inc layout_block_configure_form_validate($form, &$form_state)

Form validate handler for layout_block_configure_form().

File

core/modules/layout/layout.admin.inc, line 1786
Admin page callbacks for the Layout module.

Code

function layout_block_configure_form_validate($form, &$form_state) {
  /* @var Block $block */
  $block = $form_state['block'];

  // Validate the block settings.
  $block->formValidate($form, $form_state);

  // Replace the current style handler with a new one, in the event it changed.
  $style = layout_create_handler('layout_style', $form_state['values']['style']);
  $style->formValidate($form, $form_state);
  $form_state['style'] = $style;
}