Function __global->cns_make_emoticon

Definitions

sources/cns_general_action.php

  • Make an emoticon.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$code SHORT_TEXT No No required parameter N/A N/A The textual code entered to make the emoticon appear
$theme_img_code ID_TEXT No No required parameter N/A N/A The image code used for the emoticon
$relevance_level integer No No 1 N/A 0 4 The relevance level. 0 is core, shown immediately.
$use_topics BINARY No No 1 N/A N/A Whether this may be used as a topic emoticon
$is_special BINARY No No 0 N/A N/A Whether this may only be used by privileged members

Preview

Code (PHP)

/**
 * Make an emoticon.
 *
 * @param  SHORT_TEXT $code The textual code entered to make the emoticon appear
 * @param  ID_TEXT $theme_img_code The image code used for the emoticon
 * @param  integer $relevance_level The relevance level. 0 is core, shown immediately.
 * @range 0 4
 * @param  BINARY $use_topics Whether this may be used as a topic emoticon
 * @param  BINARY $is_special Whether this may only be used by privileged members
 */

function cns_make_emoticon(string $code, string $theme_img_code, int $relevance_level = 1, int $use_topics = 1, int $is_special = 0)