[development] Coding Standards / Hook_requirements

Larry Garfield larry at garfieldtech.com
Mon May 19 13:54:54 UTC 2008


On Monday 19 May 2008, Gábor Hojtsy wrote:

> Drupal 6+ modules can depend on PHP 5 with their .info file (I think
> "php = 5.x"), so there is no need for actual coding.

Correct, although the actual format is php=5 to indicate any PHP 5 version, 
php=5.1 to indicate a 5.1.x minimum, php=5.2.3 to indicate a PHP 5.2.3 
minimum, etc.  As of Drupal 6, modules really should be using that if they 
have a version requirement.  (As should themes.)

-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the development mailing list