Function __global->cns_has_mailing_list_style

Definitions

sources/cns_forums2.php

  • Find if we have mailing-list-style forums.
  • 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 Null N/A N/A Forum ID of forum to check (null: no filter, find a count for all)

Returns

  • A pair: How many that do, If all do
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if we have mailing-list-style forums.
 *
 * @param  ?AUTO_LINK $forum_id Forum ID of forum to check (null: no filter, find a count for all)
 * @return array A pair: How many that do, If all do
 */

function cns_has_mailing_list_style(?int $forum_id = null) : array