deleteCategories

Description

Delete one or more categories.

Syntax

void deleteCategories (array $categories, mixed $moveBoardsTo)



Parameter $categories

Expected type: Array of Integers
Description: The ID(s) of the category / categories to be deleted



Parameter $moveBoardsTo

Expected type: Mixed
Description: The ID of the category where boards from the categories to-be-deleted should be moved to

Allowed types for $moveBoardsTo
Allowed values Description
Null Delete all boards and posts within the categories (default).
Integer ID of the category to move the boards to.


Notes

  • Can be called from outside SMF to delete one or more categories
  • Updates the statistics to reflect the new situation
Advertisement: