/** * Used to display the course structure for a course where format=weeks * * This is called automatically by {@link load_course()} if the current course * format = weeks. * * @param navigation_node $navigation The course node * @param array $path An array of keys to the course node * @param stdClass $course The course we are loading the section for */ function callback_weeks_load_content(&$navigation, $course, $coursenode) { return $navigation->load_generic_course_sections($course, $coursenode, 'weeks'); }