-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
createCategory
Description
Create a new category and set its position on the board index.
Syntax
void createCategory (array $catOptions)
Parameter $catOptions
Expected type: Array
Description: An array of category options
Array Elements of $catOptions Key Optional Expected type Description cat_name no String The name of the category is_collapsable yes Boolean Whether or not the category can be collapsed move_after yes Integer The ID of the category that this one should appear after, or 0 to make it the top category.
Notes
- Can be called from outside SMF to create a new category
- Calls modifyCategory to save the position and "is_collapsable" info
- Was located in Subs-Boards.php in 1.1
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.015 seconds with 13 queries.
- Forum Search