You are here

function radioactivity_get_radioactivity_info in Radioactivity 6

Same name and namespace in other branches
  1. 5 radioactivity.inc \radioactivity_get_radioactivity_info()

Returns target object classes. Objects of target classes may receive energy.

6 calls to radioactivity_get_radioactivity_info()
radioactivity_admin_profile_form in ./radioactivity-admin-ui.inc
radioactivity_debug_add_energy_form in plugins/radioactivity_debug.module
radioactivity_debug_add_energy_form_submit in plugins/radioactivity_debug.module
radioactivity_debug_info_form in plugins/radioactivity_debug.module
_radioactivity_possibly_remap_id in ./radioactivity.inc

... See full list

File

./radioactivity.inc, line 18

Code

function radioactivity_get_radioactivity_info($reset_cache = FALSE) {
  static $info;
  if ($reset_cache || !isset($info)) {
    $info = array(
      'targets' => array(),
      'sources' => array(),
    );
    foreach (module_implements('radioactivity_info') as $name) {
      $function = $name . '_radioactivity_info';
      $result = $function();
      if (isset($result) && is_array($result)) {
        $info = array_merge_recursive($info, $result);
      }
    }
  }
  return $info;
}