function units_operator_add_dimension in Units of Measurement 7.2
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;
}