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

Submit handler for layout_settings_form() that removes a condition.

File

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

Code

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

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