Closed (won't fix)
Project:
Coder
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2009 at 22:06 UTC
Updated:
30 Dec 2014 at 18:34 UTC
Jump to comment: Most recent
In my module I pass hooks from another module through to a set of form functions. Coder incorrectly detects these function calls as actual functions and errors on the second parameter not having an ampersand before the variable:
function crmngp_crmapi_contact_form_validate($form, &$form_state){
crmngp_ui_contact_form_validate($form, $form_state);
}
Line 331: The parameters for form validation and submission functions have changed to $form, &$form_state. (Drupal Docs)
crmngp_ui_contact_form_validate($form, $form_state);
It really just needs to make sure that the word function appears at the beginning of the line.
Comments
Comment #1
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.