I was looking to add hook_hook_info() integration for Coder hooks and realized that coder_review is calling module_invoke_all('reviews') which means this hook will conflict with a theoretical 'reviews' module. The hook should actually be coder_review_reviews.

Comments

dave reid’s picture

Component: Code » Coder Review
dave reid’s picture

Status: Active » Needs review
StatusFileSize
new11.94 KB

Patch attached that converts hook_reviews() to hook_coder_review_info() (since we'd already need to rename this hook, let's name it as a 'proper' hook) ands add caching to the review info hook results.

dave reid’s picture

Status: Needs review » Needs work

This probably needs to add something like module_load_all_includes('coder.inc') since all the review callbacks would be located inside the modulename.coder.inc files as well.

klausi’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

Coder 7.x-1.x is frozen now and will not receive any updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.