Filter Form Values

Component ID

2865593

Component name

Filter Form Values

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

137

Component created

Component changed

Component body

INTRODUCTION

The Filter Form Values module is a developer module that adds in pre-filtering of form values on forms.

This can be useful when you are doing some form level field access (as opposed to entity level field access and validation) and you want to filter out some fields so that their values don't affect the entity on save.

REQUIREMENTS

This module is a developer module and as such is specified as a requirement by other modules.

Modules that want to filter form values out must implement hook_filter_form_values_filter_functions($form, $form_state) and return an array of functions that should be called.

Functions that process form values are usually of the form:

modulename_filter_form_value($form, $form_display, $form_state_values, $entity, $field_name, $field_definition)

INSTALLATION

Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/documentation/install/modules-themes/modules-8

This is a Drupal 8 only module.