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

klausi’s picture

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

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