Hi,
The parameters to hook_access() have changed in Drupal 6. See http://drupal.org/node/114774#hook_access for more information.
The attached patch should allow coder to check for this.
Cheers,
Stella
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 223892.patch | 3.14 KB | douggreen |
| coder_hook_access.patch | 1.75 KB | stella |
Comments
Comment #1
stella commentedCommitted to CVS for 5.x and 6.x versions.
Cheers,
Stella
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
nancydruFalse positive:
Line 12: Parameters to hook_access() have changed (Drupal Docs)
function _weblinks_user_form_access($user, $account) {
Comment #4
douggreen commentedThis is actually a bigger issue. We have several false positives due too liberal matching of function names. This patch takes a first stab at adding support for hook_ in the regex, which is a special case that ONLY matches the current module name. As the simpletests aren't very complete yet, some testing of this patch is needed.
Comment #5
mgiffordNot sure what happened to this patch, but in looking for this problem in D7 I also came across this issue. Figured it would be worth while linking to the latest issue #575738: false positives for hook sniffing
Comment #6
klausiCoder for Drupal 6 is now frozen and only security fixes will be applied. Feel free to update this issue and reopen against 7.x-2.x or 8.x-2.x.