1 layout_access.inc | LayoutAccessNegatable::formSubmit($form, &$form_state) |
Submit handler for the settings form for this access item.
Overrides LayoutAccess::formSubmit
File
- core/
modules/ layout/ plugins/ access/ layout_access.inc, line 168 - Class for loading, modifying, and saving a layout access rule (condition).
Class
- LayoutAccessNegatable
- A common base class used for access handlers that may be negated.
Code
function formSubmit($form, &$form_state) {
parent::formSubmit($form, $form_state);
$this->settings['negate'] = !empty($form_state['values']['negate']);
}