Function __global->cns_ensure_forum_exists

Definitions

sources/cns_forums_action2.php

  • Bomb out if the specified forum doesn't exist.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$forum_id AUTO_LINK No No required parameter N/A N/A The ID of the forum

Returns

  • The name of the forum
  • Type: SHORT_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Bomb out if the specified forum doesn't exist.
 *
 * @param  AUTO_LINK $forum_id The ID of the forum
 * @return SHORT_TEXT The name of the forum
 */

function cns_ensure_forum_exists(int $forum_id) : string