You are here

function radioactivity_get_radioactivity_info in Radioactivity 5

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

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

5 calls to radioactivity_get_radioactivity_info()
radioactivity_admin_profile_form in ./radioactivity.module
radioactivity_arbitrary_source_admin_list in plugins/radioactivity_arbitrary_source.module
radioactivity_arbitrary_source_admin_source_validate in plugins/radioactivity_arbitrary_source.module
_radioactivity_possibly_remap_id in ./radioactivity.inc
_radioactivity_resolve_classname in ./radioactivity.inc
Resolve full class name for a specific object. This utilizes subclass resolver if defined.

File

./radioactivity.inc, line 16

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;
}