Function Module_topics->post_templates
Definitions
forum/pages/modules/topics.php
- The form element for choosing a Post Template.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $forum_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The forum ID we are looking for Post Templates active in |
Returns
- A pair: The form element (Tempcode) and the default post to make
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* The form element for choosing a Post Template.
*
* @param AUTO_LINK $forum_id The forum ID we are looking for Post Templates active in
* @return array A pair: The form element (Tempcode) and the default post to make
*/
public function post_templates(int $forum_id) : array
* The form element for choosing a Post Template.
*
* @param AUTO_LINK $forum_id The forum ID we are looking for Post Templates active in
* @return array A pair: The form element (Tempcode) and the default post to make
*/
public function post_templates(int $forum_id) : array

