MoodleScript: ADD CATEGORY

MoodleScript Script Engine

Effect

Adds a category to the course categories.

Syntax

  ADD CATEGORY <categoryname> [IN <parentidentifier> [HAVING
  description: <description>
  idnumber: <idnumer>
  visible: <visible> ]

Minimal instruction:

  ADD CATEGORY <rootcategoryname>

Examples

  ADD CATEGORY Language courses HAVING
  idnumber: LANGUES
  visible: 1
  ADD CATEGORY English IN idnumber:LANGUES HAVING
  description: Category of English courses
  idnumber: ANG
  visible: 1

Specific attributes

Default values

Impact on the execution stack context

Sets the current category identifier to the created category.

Back to the language index - Back to the component index