Configuring the PHPParser plugin

Last modified: February 1, 2009 - 21:50

If you use the PHPParser plugin, there are a few configuration options that you might want to change to make it work better with Drupal's coding standards. Go to Plugins > Plugin Options... > PHP Parser and make the following changes:

  • Enable PHP 5 support
  • Enable the warning when '<?' is used instead of '<?php'
  • Disable the warning when the final closing '?>' is omitted

You would also like to enable most of the other optional warnings, with the exception of 'unused parameters' which are quite common with Drupal's hook and theme systems and don't warrant a warning.

 
 

Drupal is a registered trademark of Dries Buytaert.