I think that is exactly the right way to do it. Just a little warning along the way, there is a lot of code in Moodle that has been coded to only look for the 'weeks' and 'topics' formats which breaks on other formats. When I was creating my own format I had to search for those and add extra logic to handle either my own format, or a default case.
Greg.
General developer forum
Which is the proper way to add a new course format?
This discussion has been locked so you can no longer reply to it.