MoodleScript: ADD BLOCK

MoodleScript Script Engine

Effect

Adds a block to a course.

Syntax

  ADD BLOCK <blockname> TO <courseidentifier> HAVING
  location: <location>
  position: <position>

Minimal instruction:

  ADD BLOCK <blockname> TO <courseidentifier>

Examples

  ADD BLOCK course_recycle TO idnumber:COURSTEST HAVING
  location: side-pre
  position: last

Specific attributes

Default values

Other defaults

These default values cannot be altered by the MoodleScript syntax in the current version.

Back to the language index - Back to the component index