How to get version of UberCart using PHP code

69 Views Asked by At

How to get version number of UberCart (a Drupal module) using PHP code? Please suggest. Thanks!

1

There are 1 best solutions below

2
St0iK On BEST ANSWER

You can get a module's version in Drupal doing something like this.

$module_name = 'module_name';
if (module_exists($module_name) {
  $module_list = system_list('module_enabled');
  $module_version = $module_list[$module_name]->info['version'];
}