According to drupal conventions variables whose names start with an underscore are global variables. Local variable names should not start with an underscore. I think fixing this will only require a global search and replace replacing every occurence of $_ by $

Comments

gustav’s picture

Title: Names of local variables should not start with underscore » Check compliance with drupal coding guidelines

Please use the coder module (http://drupal.org/project/coder) to check compliance of the code with the drupal guidelines. It currently shows up a lot of warnings.

develcuy’s picture

Assigned: Unassigned » develcuy
Status: Active » Closed (fixed)

Thank you gustav, I've changed $_ by $
Just for commenting, I've asked to chx about naming conventions for global variables, he said that drupal core is not using that naming convention but they have to fix the core, hope they are going to fix it for D7(I will report that task)

Blessings!

develcuy’s picture

I've don't seen your last comment, now code is according to drupal guidelines.
That wonderful coder.module really rocks.

Blessings!