How to find version of Drupal installed

前端 未结 17 1104
暗喜
暗喜 2020-12-29 01:53

How can I know which version of Drupal is installed in my server?

17条回答
  •  佛祖请我去吃肉
    2020-12-29 02:24

    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();
    }
    

提交回复
热议问题