You are here

function radioactivity_entities in Radioactivity 7

2 calls to radioactivity_entities()
radioactivity_field_formatter_view in ./radioactivity.field.inc
Implements hook_field_formatter_view().
radioactivity_page_alter in ./radioactivity.field.inc

File

./radioactivity.field.inc, line 190

Code

function radioactivity_entities($field_id = NULL, $type = NULL, $entity_id = NULL) {
  static $entities = NULL;
  if ($entities == NULL) {
    $entities = array();
  }
  if ($entity_id !== NULL) {
    $entities[$field_id][$type][] = $entity_id;
  }
  else {
    return $entities;
  }
}