This files describes API changes for course formats Overview of this plugin type at http://docs.moodle.org/dev/Course_formats === 3.0 === * Course formats should now use section_edit_control_items and use the returned array of controls items and their attributes to create a renderable menu or array of links. Plugin calls to section_edit_controls will now include the section edit control in the returned array. * The section name is now wrapped in a new span (.sectionname > span), process_sections method in format.js should be updated so .sectionname DOM node's wraps the section title in a span. You can look at how to implement the change in course/format/topics/format.js or MDL-48947. * New method format_base::get_default_section_name retrieves the default section name for the given course format. The base implementation basically uses the implementation of format_base::get_section_name. The method can be overridden in format_base subclasses that use sections (i.e. format_topics, format_weeks). In relation to the changes made for the default section name, the default section name is now being shown when editing the section information. === 2.9 === * Course formats may support deleting sections, see MDL-10405 for more details. format_section_renderer_base::section_edit_controls() is now also called for stealth sections and it also returns "delete" control. === 2.8 === * The activity chooser now uses M.course.format.get_sectionwrapperclass() to determine the section selector, rather than a hard-coded `li.section`. * Activity duplication in /course/modduplicate.php is deprecated and is now done in /course/mod.php. Deprecated calls will be honored by redirecting to /course/mod.php for 3rd party plugin support. * New method format_base::section_get_available_hook() allows plugins to override section availability. === 2.7 === * The ->testedbrowsers array no longer needs to be defined in supports_ajax(). * format_section_renderer_base::section_hidden has an new second optional argument $courseorid. If provided the section name is printed in the not available string when displaying the hidden section. === 2.6 === * core_course_renderer::course_section_cm_edit_actions has two new optional arguments and now uses and action_menu component. * core_course_renderer::course_section_cm has been altered to call core_course_renderer::course_section_cm_edit_actions with the two new arguments * An additional course renderer function has been created which allows you to specify the wrapper for a course module within a section (e.g. the