function units_unit_is_enabled in Units of Measurement 6
Check if provided unit is enabled.
File
- ./
units.module, line 27 - Units module.
Code
function units_unit_is_enabled($id) {
$enabled = units_get_enabled_units();
if (empty($enabled)) {
return TRUE;
}
return in_array($id, $enabled);
}