Function Hook_fields_color->render_field_value
Definitions
sources/hooks/systems/fields/color.php
- Convert a field value to something renderable.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$field | array | required parameter | N/A | N/A | The field details |
$ev | mixed | required parameter | N/A | N/A | The raw value |
$i | integer | required parameter | N/A | N/A | Position in fieldset |
$only_fields | ?array | required parameter | N/A | N/A | List of fields the output is being limited to (null: N/A) |
$table | ?ID_TEXT | Null | N/A | N/A | The table we store in (null: N/A) |
$id | ?AUTO_LINK | Null | N/A | N/A | The ID of the row in the table (null: N/A) |
$id_field | ?ID_TEXT | Null | N/A | N/A | Name of the ID field in the table (null: N/A) |
$field_id_field | ?ID_TEXT | Null | N/A | N/A | Name of the field ID field in the table (null: N/A) |
$url_field | ?ID_TEXT | Null | N/A | N/A | Name of the URL field in the table (null: N/A) |
$submitter | ?MEMBER | Null | N/A | N/A | Submitter (null: current member) |
$ev_pure | ?mixed | Null | N/A | N/A | The 'pure' form of the raw value, meaning Comcode is not pre-parsed and string conversion has not been performed (null: unknown) |
Return
- Rendered field (string or Tempcode)
- Type: mixed
- Set: N/A
- Range: N/A