Function Module_admin_cns_forum_groupings->get_form_fields
Definitions
adminzone/pages/modules/admin_cns_forum_groupings.php
- Get Tempcode for a forum grouping template adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $title | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | The title (name) of the forum grouping |
| $description | LONG_TEXT | No | No | Blank (empty string) | N/A | N/A | The description for the forum grouping |
| $expanded_by_default | BINARY | No | No | 1 | N/A | N/A | Whether the forum grouping is expanded by default when shown in the forum view |
Returns
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get Tempcode for a forum grouping template adding/editing form.
*
* @param SHORT_TEXT $title The title (name) of the forum grouping
* @param LONG_TEXT $description The description for the forum grouping
* @param BINARY $expanded_by_default Whether the forum grouping is expanded by default when shown in the forum view
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $title = '', string $description = '', int $expanded_by_default = 1) : array
* Get Tempcode for a forum grouping template adding/editing form.
*
* @param SHORT_TEXT $title The title (name) of the forum grouping
* @param LONG_TEXT $description The description for the forum grouping
* @param BINARY $expanded_by_default Whether the forum grouping is expanded by default when shown in the forum view
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $title = '', string $description = '', int $expanded_by_default = 1) : array

