Function Hook_config_one_per_email_address->presave_handler
Definitions
sources/hooks/systems/config/one_per_email_address.php
- Code to run before the option is saved.If there is some kind of problem with the new value then we could attach an error message.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $new_value | string | No | No | required parameter | N/A | N/A | The new value |
| $old_value | string | No | No | required parameter | N/A | N/A | The old value |
Returns
- Whether to allow the save
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Code to run before the option is saved.If there is some kind of problem with the new value then we could attach an error message.
*
* @param string $new_value The new value
* @param string $old_value The old value
* @return boolean Whether to allow the save
*/
public function presave_handler(string $new_value, string $old_value) : bool
* Code to run before the option is saved.If there is some kind of problem with the new value then we could attach an error message.
*
* @param string $new_value The new value
* @param string $old_value The old value
* @return boolean Whether to allow the save
*/
public function presave_handler(string $new_value, string $old_value) : bool

