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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

camoa’s picture

Hello, 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

camoa’s picture

Status: Active » Needs review

I would like to know your opinions on the patch sent before. Thanks

ossguys’s picture

Status: Needs review » Needs work

Patch file doesn't seem to be opening. Can you please re-attach the file?

camoa’s picture

camoa’s picture

Another attempt.

Done, problem with the name.

ossguys’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
1 KB

@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.

camoa’s picture

Thanks for the fix!

drupalshrek’s picture

Issue summary: View changes

I'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?

camoa’s picture

I don't believe so... but you can apply it to version 2.

drupalshrek’s picture

Applying patches is not in my experience, so I just disabled the Module Filter module.

iStryker’s picture

greenSkin’s picture

Status: Reviewed & tested by the community » Closed (cannot reproduce)

I'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?