[development] Coding Standards / Hook_requirements
John Fiala
jcfiala at gmail.com
Mon May 19 14:47:09 UTC 2008
Hmm. In my module.info file, I've got "php = 5.0" - does that need to
be changed to "php = 5"?
And I'd never heard of hook_requirements before - let me go have a look at it.
On Mon, May 19, 2008 at 7:54 AM, Larry Garfield <larry at garfieldtech.com> wrote:
> 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
>
--
John Fiala
More information about the development
mailing list