You are here

function units_get_symbol in Units of Measurement 6

Return symbol of unit

File

./units.module, line 90
Units module.

Code

function units_get_symbol($unit_id) {
  $units = units_get_units();
  return isset($units[$unit_id]['symbol']) ? $units[$unit_id]['symbol'] : '';
}