Function Module_warnings->get_form_fields
Definitions
site/pages/modules/warnings.php
- Get Tempcode for a warning adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$new | boolean | True | N/A | N/A | Whether it is a new warning/punishment record |
$explanation | LONG_TEXT | Blank (empty string) | N/A | N/A | The explanation for the warning/punishment record |
$is_warning | BINARY | 1 | N/A | N/A | Whether to make this a formal warning |
$member_id | ?MEMBER | Null | N/A | N/A | The member the warning is for (null: get from environment) |
Return
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A