There's a recommended way to do this, which should be "better" to use. Take a look here, Appendix B section 2.
Blocks
Own blocks creation with course
Cette discussion a été verrouillée. Vous ne pouvez plus y répondre.