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

Submit handler for layout_settings_form() that removes a context.

File

core/modules/layout/layout.context.admin.inc, line 225
Administrative functions for custom layout contexts.

Code

function layout_settings_form_context_remove($form, &$form_state) {
  $removed_context = $form_state['clicked_button']['#array_parents'][3];
  $form_state['layout']->clearContexts($removed_context);
  layout_set_layout_tempstore($form_state['layout']);

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