You are here

function units_operator_divide_split_quantity in Units of Measurement 7.2

1 string reference to 'units_operator_divide_split_quantity'
divide.inc in plugins/operator/divide.inc

File

plugins/operator/divide.inc, line 35

Code

function units_operator_divide_split_quantity($total_quantity, $quantity1, $quantity2, $plugin) {

  // Dead easy: we'll just divide by 1 to keep it consistent.
  return array(
    $total_quantity,
    $plugin['transparent operand2'],
  );
}