Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Display notes for a module even if the module is set to always check for updates.
Assume a newer branch of a module requires a newer version of another module (in my case Views) that will not be installed, ever. Displaying the content of the Notes field allows this to be documented so that it will be easily ignored when viewing available updates.
Comment | File | Size | Author |
---|---|---|---|
#6 | update_advanced-always_display_notes-1613414-6.patch | 4.24 KB | AohRveTPV |
#2 | update_advanced-always_display_notes-1613414-2.patch | 3.4 KB | AohRveTPV |
Comments
Comment #1
AohRveTPV CreditAttribution: AohRveTPV commentedSeems sensible to me. I usually use the notes to document why a particular update is ignored, but I see no reason it could not be used for other purposes.
Note that this patch violates two current coding standards for consistency with the existing code:
1. No documentation of parameter/return types.
2. No blank line between @param and @return comments.
Comment #2
AohRveTPV CreditAttribution: AohRveTPV commentedIgnore previous patch.
Comment #3
AohRveTPV CreditAttribution: AohRveTPV commentedThe function name
update_advanced_get_project_admin_note()
would maybe be more consistent withupdate_advanced_is_project_ignored()
thanupdate_advanced_get_admin_note()
, which lacks the word project.Comment #4
AohRveTPV CreditAttribution: AohRveTPV commentedCorrection: Omitting data types in function comments is not a violation of coding standards as I said in #1. Data types are only required for D8.
Comment #5
AohRveTPV CreditAttribution: AohRveTPV commentedREADME.txt needs to be updated accordingly.
Comment #6
AohRveTPV CreditAttribution: AohRveTPV commentedUpdates #2 to clarify README.txt documentation of administrator note feature. With this change, administrator notes are not necessarily used to record the reason releases are ignored.
This README.txt change may not be necessary.