1 layout.admin.inc | layout_block_configure_form_condition_remove($form, &$form_state) |
Submit handler for layout_block_configure_form() to remove a condition.
File
- core/
modules/ layout/ layout.admin.inc, line 1781 - Admin page callbacks for the Layout module.
Code
function layout_block_configure_form_condition_remove($form, &$form_state) {
/* @var Layout $layout */
$layout = $form_state['layout'];
/* @var Block $block */
$block = $form_state['block'];
$removed_condition = $form_state['clicked_button']['#array_parents'][2];
unset($block->conditions[$removed_condition]);
$layout->in_progress['section'] = 'conditions';
layout_set_layout_tempstore($layout);
$form_state['ajax_update'] = array('conditions');
}