1 layout_context.inc LayoutContext::formSubmit($form, &$form_state)

Submit handler for the settings form for this context item.

File

core/modules/layout/plugins/context/layout_context.inc, line 351
Class that holds information relating to a layout's context.

Class

LayoutContext
@file Class that holds information relating to a layout's context.

Code

function formSubmit($form, &$form_state) {
  $excluded = backdrop_map_assoc(array('cancel', 'submit', 'form_build_id', 'form_token', 'form_id', 'op', 'add', 'context'));
  $settings = array_diff_key($form_state['values'], $excluded);
  $this->settings = array_merge($this->settings, $settings);
}