Function __global->cns_move_topics

Definitions

sources/cns_topics_action2.php

  • Move some topics.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$from AUTO_LINK No No required parameter N/A N/A The forum the topics are currently in
$to AUTO_LINK No No required parameter N/A N/A The forum the topics are being moved to
$topics ?array No No Null N/A N/A A list of the topic IDs to move (null: move all topics from source forum)
$check_perms boolean No No True N/A N/A Whether to check permissions

Preview

Code (PHP)

/**
 * Move some topics.
 *
 * @param  AUTO_LINK $from The forum the topics are currently in
 * @param  AUTO_LINK $to The forum the topics are being moved to
 * @param  ?array $topics A list of the topic IDs to move (null: move all topics from source forum)
 * @param  boolean $check_perms Whether to check permissions
 */

function cns_move_topics(int $from, int $to, ?array $topics = null, bool $check_perms = true)