Fix message producer defaults for 4.4+#1442
Merged
crazyserver merged 1 commit intomoodle:mainfrom Jan 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates documentation for Moodle's message API to reflect changes made in version 4.4+, where deprecated constants MESSAGE_DEFAULT_LOGGEDIN and MESSAGE_DEFAULT_LOGGEDOFF were replaced with MESSAGE_DEFAULT_ENABLED.
- Updates code examples to use the new
MESSAGE_DEFAULT_ENABLEDconstant instead of the deprecated ones - Updates documentation comments to reflect the simplified bit usage pattern
- Applies these changes consistently across multiple documentation versions (4.4, 4.5, 5.0, and current docs)
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/apis/core/message/index.md | Updates current documentation with new constant usage |
| versioned_docs/version-5.0/apis/core/message/index.md | Updates version 5.0 documentation with new constant usage |
| versioned_docs/version-4.5/apis/core/message/index.md | Updates version 4.5 documentation with new constant usage |
| versioned_docs/version-4.4/apis/core/message/index.md | Updates version 4.4 documentation with new constant usage |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
✅ Deploy Preview for moodledevdocs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
|
@crazyserver can you review this? It's related to https://moodle.atlassian.net/browse/MDL-67853 |
d3ea5b7 to
2c7a30f
Compare
crazyserver
approved these changes
Jan 12, 2026
2c7a30f to
7d9168b
Compare
Contributor
Author
|
Added change to the 5.1 page. |
crazyserver
approved these changes
Jan 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to https://moodle.atlassian.net/browse/MDL-73284 where
MESSAGE_DEFAULT_LOGGEDOFF / MESSAGE_DEFAULT_LOGGEDINwas removed the docs still use that in docs and not the replacement.