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.
The current design (as well as the 7.x-1.x branch for a different reason) isn't compatible with the Coder Review module. The Coder Review module adds a operation link to each module to do a Coder check for that module.
The problem is at theme_module_filter_operations() has a pre-defined list of operations that it will convert to the drop down button, so any links that another module adds (like Coder Review) are dropped.
Comment | File | Size | Author |
---|---|---|---|
#11 | module_filter-incompatibility-with-Tab-mode-and-Coder-Review-module-1969856-11.patch | 644 bytes | iStryker |
Comments
Comment #1
camoa CreditAttribution: camoa commentedHello, I have been checking this on branches 7.x-1.x and 7.x-2.x.
Basically the reason is the same in both, module filter has the links hard coded (help, configure, permissions) I changed branch 7.x-2.x and fixed the issue, I hope I did it right I would love to have some feedback. I am working on 7.x-1.x since the way they handle the links array there is different.
Thanks
Comment #2
camoa CreditAttribution: camoa commentedI would like to know your opinions on the patch sent before. Thanks
Comment #3
ossguys CreditAttribution: ossguys commentedPatch file doesn't seem to be opening. Can you please re-attach the file?
Comment #4
camoa CreditAttribution: camoa commentedI tried, it is rejecting the file.....
Comment #5
camoa CreditAttribution: camoa commentedAnother attempt.
Done, problem with the name.
Comment #6
ossguys CreditAttribution: ossguys commented@camoatech - The patch solved the problem!
Although there were following minor issues while applying the patch so I have corrected the patch and attached here. It's just related to trailing whitespaces and minor space issue.
root:# git apply -v module_filter-incompatibility-with-Tab-mode-and-Coder-Review-module-1969856-comment-2.patch
module_filter-incompatibility-with-Tab-mode-and-Coder-Review-module-1969856-comment-2.patch:25: trailing whitespace.
module_filter-incompatibility-with-Tab-mode-and-Coder-Review-module-1969856-comment-2.patch:30: trailing whitespace.
}
Checking patch module_filter.theme.inc...
Applied patch module_filter.theme.inc cleanly.
warning: 2 lines add whitespace errors.
Comment #7
camoa CreditAttribution: camoa commentedThanks for the fix!
Comment #8
drupalshrek CreditAttribution: drupalshrek commentedI'm having this issue: with Module Filter switched on, the Code Review link does not appear.
I am using the latest version of module filter. Is the above patch applied there yet?
Comment #9
camoa CreditAttribution: camoa commentedI don't believe so... but you can apply it to version 2.
Comment #10
drupalshrek CreditAttribution: drupalshrek commentedApplying patches is not in my experience, so I just disabled the Module Filter module.
Comment #11
iStryker CreditAttribution: iStryker commentedCannot apply patch to master as it conflicts with the commit of #2304687: Remove hardcoded operations.
If #2304687 is not applied then there is a huge amount of theming errors.
Attached is patch against master +5
Comment #12
greenSkin CreditAttribution: greenSkin commentedI've installed Coder Review (version 2.4) and I do not see the issue. The "Code review" link renders as expected whether using dropbutton or not, no patch needed. Is this an issue with the 1.2 release of the Coder module?