You are here

function radioactivity_ajax_callback in Radioactivity 7

Page ajax callback

1 string reference to 'radioactivity_ajax_callback'
radioactivity_menu in ./radioactivity.module
Implementation of hook_menu

File

./radioactivity.module, line 77

Code

function radioactivity_ajax_callback() {
  $data = $_REQUEST['entities'];
  $time_now = time();
  if (is_array($data)) {
    foreach ($data as $field_id => $entities) {
      radioactivity_incident_emit($field_id, $entities);
    }
  }

  // @TODO: needs a workaround as this will cause major slowdowns at some point
  field_cache_clear();
}