function physical_dimension_unit_name in Physical Fields 7
Returns the name of a dimension unit of measurement.
Parameters
$type: The type of dimension unit whose name should be returned; by default this can be in, ft, mm, cm, or m.
Return value
The name of the specified unit of measurement or FALSE if not found.
File
- ./
physical.module, line 1143 - Defines fields (e.g. weight and dimensions) to support describing the physical attributes of entities.
Code
function physical_dimension_unit_name($type) {
$units = physical_dimension_units();
if (!empty($units[$type]['name'])) {
return $units[$type]['name'];
}
return FALSE;
}