1 layout_relationship.inc LayoutRelationship::formSubmit($form, &$form_state)

Submit handler for the settings form for this relationship item.

File

core/modules/layout/plugins/relationships/layout_relationship.inc, line 108
Class that holds information relating to a layout's context relationships.

Class

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

Code

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