Function Hook_fields_codename->get_field_random
Definitions
sources/hooks/systems/fields/codename.php
- Get a fresh value for a random valued field.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$field_id | AUTO_LINK | required parameter | N/A | N/A | The field ID |
$default | string | Blank (empty string) | N/A | N/A | The field default |
Return
- The value (null: could not process)
- Type: ?string
- Set: N/A
- Range: N/A