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

Submit handler for layout_settings_form() that removes a relationship.

File

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

Code

function layout_settings_form_context_relationship_remove($form, &$form_state) {
  $removed_relationship = $form_state['clicked_button']['#array_parents'][3];
  unset($form_state['layout']->relationships[$removed_relationship]);
  layout_set_layout_tempstore($form_state['layout']);

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