MoodleScript: MOVE COURSE

MoodleScript Script Engine

Effect

Moves courses into a target category.

Syntax

  MOVE COURSE <courseidentifier> TO <categoryidentifier> [IF EXISTS]

Examples

  MOVE COURSE current TO  idnumber:"MY_CAT"
  MOVE COURSE current TO  idnumber:"MY_NEW_CAT" IF EXISTS

Specific attributes

Other defaults

None

Back to the language index - Back to the component index