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

Submit handler for layout_block_configure_form() to add a condition.

File

core/modules/layout/layout.admin.inc, line 1441
Administrative functions for Layout module.

Code

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

  $layout->in_progress['section'] = 'conditions';
  layout_set_layout_tempstore($layout);
  $form_state['redirect'] = 'admin/structure/layouts/manage/' . $layout->name . '/condition/add/' . $block->uuid;
}