Function __global->cns_make_post_template

Definitions

sources/cns_general_action.php

  • Make a Post Template.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$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

Returns

  • The added ID
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Make a Post Template.
 *
 * @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
 * @return AUTO_LINK The added ID
 */

function cns_make_post_template(string $title, string $text, string $forum_multi_code, int $use_default_forums) : int