Closed (duplicate)
Project:
Drupal core
Version:
4.7.0-beta2
Component:
system.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2005 at 03:28 UTC
Updated:
9 Jan 2006 at 19:10 UTC
Currently, there is no way that I have seen (at least in 4.6) to easily determine what version of Drupal you are running. Either a function or constant of (something like) drupal_version() should be added so that modules can easily tell what version of Drupal they are running on. This would allow for more flexible modules, with version-specific behaviors, and allow modules to have a longer, more easily modifiable "shelf life".
Comments
Comment #1
Eglish commentedbeen talking about this for a while. http://drupal.org/node/2986