elseif (defined('BACKDROP_VERSION')) {
return 'Backdrop';
}
- elseif (function_exists('drupal_bootstrap') && version_compare(VERSION, '6.0', '>=') && version_compare(VERSION, '7.0', '<')) {
- return 'Drupal6';
- }
elseif (function_exists('drupal_bootstrap') && version_compare(VERSION, '7.0', '>=') && version_compare(VERSION, '8.0', '<')) {
return 'Drupal';
}
'administrator/components/com_civicrm/civicrm/civicrm-version.php',
),
'Drupal' => array(
- 'modules/system/system.module', // D7
+ // D7
+ 'modules/system/system.module',
),
'Drupal8' => array(
- 'core/core.services.yml', // D8
+ // D8
+ 'core/core.services.yml',
),
'Backdrop' => array(
'core/modules/layout/layout.module',
}
namespace {
+
/**
* Get the CiviCRM version.
* TODO : For now this function is not included in \Civi\Version class so not to break any code
'cms' => \_CiviVersion_\Util::findCMS(),
];
}
+
}