You are here

function activity_get_info in Activity 5.3

Same name and namespace in other branches
  1. 5.4 activity.module \activity_get_info()
  2. 6 activity.module \activity_get_info()

API function

Return value

an array of module names and metadata from those modules that implement hook_activity_info.

2 calls to activity_get_info()
ActivityAPITest::testActivityGetInfo in tests/ActivityAPITests.test
activity_admin_settings in ./activity.module
Admin section TODO: 1) the defaults aren't available at activity render time unless this this page has been saved. This is potentially confusing since they show up in the textfields.
1 string reference to 'activity_get_info'
ActivityAPITest::testActivityGetInfo in tests/ActivityAPITests.test

File

./activity.module, line 181
Activity module: Allow users to see their friends' activity on the site.

Code

function activity_get_info() {
  foreach (module_implements('activity_info') as $module) {
    $info[$module] = module_invoke($module, 'activity_info');
  }
  return $info;
}