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

Submit handler for layout_settings_form() that removes a condition.

File

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

Code

function layout_settings_form_condition_remove($form, &$form_state) {
  $removed_condition = $form_state['clicked_button']['#array_parents'][2];
  unset($form_state['layout']->conditions[$removed_condition]);
  layout_set_layout_tempstore($form_state['layout']);

  $form_state['ajax_update'] = array('conditions');
}