function currency_requirements in Currency 7.2
Same name and namespace in other branches
- 8.3 currency.install \currency_requirements()
Implements hook_requirements().
File
- currency/
currency.install, line 156
Code
function currency_requirements($phase) {
$loaded = extension_loaded('BCMath');
$requirements['currency_extension_bcmath'] = array(
'description' => t('BCMath is used to prevent possible precision loss during calculations.'),
'title' => t('PHP BCMath extension'),
'value' => $loaded ? t('Loaded') : t('Not loaded'),
'severity' => $loaded ? REQUIREMENT_OK : REQUIREMENT_WARNING,
);
return $requirements;
}