You are here

function radioactivity_delete_energy in Radioactivity 5

Same name and namespace in other branches
  1. 6 radioactivity.module \radioactivity_delete_energy()

File

./radioactivity.module, line 505

Code

function radioactivity_delete_energy($oid, $oclass) {

  // remap id if necessary
  $oid = _radioactivity_possibly_remap_id($oid, $oclass);
  db_query("DELETE FROM {radioactivity} WHERE id=%d AND class='%s'", $oid, $oclass);
  return TRUE;
}