1.20.x layout_access.inc LayoutAccess::formSubmit($form, &$form_state)

Submit handler for the settings form for this access item.

File

modules/layout/plugins/access/layout_access.inc, line 88
Class for loading, modifying, and saving a layout access rule (condition).

Class

LayoutAccess
@file Class for loading, modifying, and saving a layout access rule (condition).

Code

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