This refers to Moodle 2.7 from July 2015 onward
How to set your module to show Collapsed Topics
In your module:
- Find the Administration block and click on Module administration > Edit Settings
- Expand the section Module format
- In the Format drop-down menu select 'Collapsed Topics'
- Scroll to the bottom of the screen and click on the Save changes button
The module will now look like the example below.