Function __global->cns_edit_post_template
Definitions
sources/cns_general_action2.php
- Edit a Post Template.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the Post Template to edit |
| $title | SHORT_TEXT | No | No | required parameter | N/A | N/A | The title for the template |
| $text | LONG_TEXT | No | No | required parameter | N/A | N/A | The text of the template |
| $forum_multi_code | SHORT_TEXT | No | No | required parameter | N/A | N/A | The multi code specifying which forums this is applicable in |
| $use_default_forums | BINARY | No | No | required parameter | N/A | N/A | Whether to use this as the default post in applicable forum |
Preview
Code (PHP)
/**
* Edit a Post Template.
*
* @param AUTO_LINK $id The ID of the Post Template to edit
* @param SHORT_TEXT $title The title for the template
* @param LONG_TEXT $text The text of the template
* @param SHORT_TEXT $forum_multi_code The multi code specifying which forums this is applicable in
* @param BINARY $use_default_forums Whether to use this as the default post in applicable forum
*/
function cns_edit_post_template(int $id, string $title, string $text, string $forum_multi_code, int $use_default_forums)
* Edit a Post Template.
*
* @param AUTO_LINK $id The ID of the Post Template to edit
* @param SHORT_TEXT $title The title for the template
* @param LONG_TEXT $text The text of the template
* @param SHORT_TEXT $forum_multi_code The multi code specifying which forums this is applicable in
* @param BINARY $use_default_forums Whether to use this as the default post in applicable forum
*/
function cns_edit_post_template(int $id, string $title, string $text, string $forum_multi_code, int $use_default_forums)

