How to find version of Drupal installed

Solution 1:

You can get this by logging in to admin. Go to Administer → Reports → Status Report.

This will let you know all your config information of the site including your Drupal version.

Solution 2:

You can also type:

drush status in your project folder. It will print out something like this:

$ drush status
 Drupal version         :  7.27 **<--**
 Default theme          :  garland
 Administration theme   :  garland
 PHP executable         :  php
 PHP configuration      :  "C:\Program Files (x86)\Drush\Php\php.ini"
 PHP OS                 :  WINNT
 Drush version          :  6.0
 Drush configuration    :
 Drush alias files      :  c:/users/spaden/.drush/pantheon.aliases.drushrc.php
 Drupal root            :  c:/Users/spaden/localSite/

Hope this helps!

Solution 3:

To easily check Drupal version, go to www.yourwebsite.com/CHANGELOG.txt

CHANGELOG.txt will show you the version and change log updates to the Drupal build version.

Solution 4:

This is defined as a global PHP variable in /includes/bootstrap.inc within D7. Example: define('VERSION', '7.14'); So use it like this...

if (VERSION >= 7.1) {
  do_something();
}