You are here

function quant_get_quant in Quant 7

Fetch a quant by ID

Parameters

$id: The quant id

Return value

A quant object, or NULL, if there is no quant with this ID

File

./quant.module, line 108

Code

function quant_get_quant($id) {
  $quants = quant_get_quants();
  return isset($quants[$id]) ? $quants[$id] : NULL;
}