Skip to content

[docs] Remove course-level linear navigation setting (MDL-89406) - #1679

Open
kieranpgray wants to merge 1 commit into
moodle:mainfrom
kieranpgray:MDL-89406-linear-navigation-docs
Open

[docs] Remove course-level linear navigation setting (MDL-89406)#1679
kieranpgray wants to merge 1 commit into
moodle:mainfrom
kieranpgray:MDL-89406-linear-navigation-docs

Conversation

@kieranpgray

@kieranpgray kieranpgray commented Aug 21, 2026

Copy link
Copy Markdown

Tracker: MDL-89406Enable linear navigation for all courses and control it through a site-level setting

MDL-89406 removes the enablelinearnav course format option and its course settings field, leaving linear navigation controlled solely by the per-format site setting. The option is absent from v5.2.0 and all earlier tags, so it never shipped in a stable release and is removed outright rather than deprecated.

This updates the developer documentation to match.

Changes

docs/apis/plugintypes/format/linear_navigation.md

  • Replace the Adding format-level configuration section. Its course_format_options() sample called linearnavigationsettings::get_course_format_options_default() and ::get_course_format_options_edit_form(), both removed by the patch. The settings.php example previously nested inside it is still current and is promoted to be the section, since it is now the only way a format configures the feature.
  • Document that a format which does not define the setting has linear navigation enabled, matching the fallback in get_default_linear_navigation_value().
  • Correct the description of is_linear_navigation_enabled(), which read "the linear navigation format option" and now reads the site-level setting for the format.

docs/apis/plugintypes/format/index.md

  • Drop the reference to get_course_format_options_default() from the course_format_options() row, restoring the wording that preceded 0ca97eb.

Notes

The page carries <Since version="5.3" issueNumber="MDL-84921" /> and no new Since marker is added: as the course-level option never reached a stable release, there is nothing for a 5.3 reader to have known differently. For the same reason the text does not describe the removed course setting — it documents only current behaviour.

docs/devupdate.md was reviewed and left unchanged; its description of the uses_linear_navigation() opt-in remains accurate.

Testing

  • yarn mdlint — 0 errors
  • cspell — 0 issues
  • yarn build — succeeds (onBrokenLinks: 'throw'), no anchor warnings
  • All methods referenced by the page verified present on the MDL-89406 branch

🤖 Generated with Claude Code

MDL-89406 removes the enablelinearnav course format option and its course
settings field, leaving linear navigation controlled solely by the per-format
site setting. The option never shipped in a stable release, so it is removed
outright rather than deprecated.

Update the linear navigation guide to drop the course_format_options() sample
built on linearnavigationsettings::get_course_format_options_default() and
::get_course_format_options_edit_form(), both of which no longer exist, and
document the settings.php entry that now controls the feature. Correct the
description of what is_linear_navigation_enabled() reads.

Drop the matching reference to get_course_format_options_default() from the
course format API index.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 21, 2026

Copy link
Copy Markdown

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 215ce1d
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6a87f4ed614705000867d2ea
😎 Deploy Preview https://deploy-preview-1679--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant