Does the Radioactivity module support increasing energy through JavaScript events? I'm thinking of how it might combine with the Link module (with a patch), a click would increase the energy on the node associated with the Link field.

Comments

tcmug’s picture

Not directly, but I see how this could be beneficial. One could write an ajax callback which would add energy to given nodes with code like:

foreach ($nodes as $nid) {
  $node = node_load($nid);
  _radioactivity_update_energy("node", $node->type, "field_popularity", $node->language, $node->nid, 10, time());
}

This would however add it to the node directly bypassing the incident storages. To use the incident storage you would have to do a bit more coding (see emit.php for details).

sutharsan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Issue triage: Closing issue due to lack of activity.

If you believe this issue is closed in error, feel free to re-open.