You are here

function radioactivity_get_radioactivity_array in Radioactivity 6

Same name and namespace in other branches
  1. 5 radioactivity.module \radioactivity_get_radioactivity_array()
1 call to radioactivity_get_radioactivity_array()
radioactivity_node_nodeapi in plugins/radioactivity_node.module

File

./radioactivity.inc, line 230

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;
}