
| Current Path : /var/www/html/store/web/modules/contrib/commerce/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/modules/contrib/commerce/commerce.install |
<?php
/**
* @file
* Contains install and update functions for Commerce.
*/
/**
* Implements hook_requirements().
*/
function commerce_requirements($phase) {
$requirements = [];
if ($phase == 'install' || $phase == 'runtime') {
if (!extension_loaded('bcmath')) {
$requirements['commerce_bcmath'] = [
'title' => t('BC Math'),
'description' => t('Commerce requires the BC Math PHP extension.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}
/**
* Install the Token module.
*/
function commerce_update_8201() {
\Drupal::service('module_installer')->install(['token']);
}