MoodleScript: REMOVE BLOCK

MoodleScript Script Engine

Effect

Removes blocks from a course.

Syntax

  REMOVE BLOCK <blockname> FROM <courseidentifier>
  REMOVE BLOCK <blockidentifier> (todo)
  REMOVE BLOCK <blockname> FROM <courseidentifier> HAVING
  location: <location>
  position: <position>

Examples

  REMOVE BLOCK course_recycle FROM current HAVING
  REMOVE BLOCK html FROM idnumber:"C203" 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.

Notes

(*) This assumes the block identifiers provided by the installation of certain third-party plugins are in place.

Back to the language index - Back to the component index