You are here

function units_operator_add_dimension in Units of Measurement 7.2

1 string reference to 'units_operator_add_dimension'
add.inc in plugins/operator/add.inc

File

plugins/operator/add.inc, line 28

Code

function units_operator_add_dimension($dimension1, $dimension2, $operator1, $operator2) {

  // We require 'dimension check', so both provided dimensions must be the same,
  // and since addition does not actually alter resulting dimension, we just
  // return the first dimension.
  return $dimension1;
}