You are here

function radioactivity_get_radioactivity_array in Radioactivity 5

Same name and namespace in other branches
  1. 6 radioactivity.inc \radioactivity_get_radioactivity_array()

File

./radioactivity.module, line 512

Code

function radioactivity_get_radioactivity_array($oid, $oclass) {
  $ret = array();
  $energies = radioactivity_get_energy($oid, $oclass);
  foreach ($energies as $dpid => $energy) {
    $ret['energy'][$dpid] = (double) $energies[$dpid];
  }
  return $ret;
}