MoodleScript: HIDE BLOCK

MoodleScript Script Engine

Effect

Hides the instances of a block in a course.

Syntax

  HIDE BLOCK <blocktype> IN <courseidentifier>
  HIDE BLOCK <blockidentifier> (todo)

Examples

  HIDE BLOCK latest_news IN idnumber:U345654
  HIDE BLOCK idnumber:"B203_52"
  HIDE BLOCK current

Specific attributes

Other defaults

None

Notes

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

See also

Show a block

Back to the language index - Back to the component index