Function Module_admin_cns_post_templates->get_form_fields
Definitions
adminzone/pages/modules/admin_cns_post_templates.php
- Get Tempcode for a Post 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 Post Template |
| $text | LONG_TEXT | No | No | Blank (empty string) | N/A | N/A | The actual Post Template text |
| $forum_multi_code | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | Multi-code identifying forums it is applicable to |
| $use_default_forums | BINARY | No | No | 0 | N/A | N/A | Whether to use as the default post for applicable forums |
Returns
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get Tempcode for a Post Template adding/editing form.
*
* @param SHORT_TEXT $title The title (name) of the Post Template
* @param LONG_TEXT $text The actual Post Template text
* @param SHORT_TEXT $forum_multi_code Multi-code identifying forums it is applicable to
* @param BINARY $use_default_forums Whether to use as the default post for applicable forums
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $title = '', string $text = '', string $forum_multi_code = '', int $use_default_forums = 0) : array
* Get Tempcode for a Post Template adding/editing form.
*
* @param SHORT_TEXT $title The title (name) of the Post Template
* @param LONG_TEXT $text The actual Post Template text
* @param SHORT_TEXT $forum_multi_code Multi-code identifying forums it is applicable to
* @param BINARY $use_default_forums Whether to use as the default post for applicable forums
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $title = '', string $text = '', string $forum_multi_code = '', int $use_default_forums = 0) : array

