function activity_module_name in Activity 6.2
Find the module that provides the selected hook.
Parameters
string $hook: The hook
Return value
string / FALSE The module that provides that hook.
7 calls to activity_module_name()
- activity_batch_load in ./
activity.module - Menu loader function to load batch-able action_id.
- activity_batch_regenerate_step in ./
activity.admin.inc - Batch regeneration step.
- activity_form_submit in ./
activity.admin.inc - Form submit controller.
- activity_record_check in ./
activity.module - determines if the current trigger should be ignored
- activity_user_settings in ./
activity.admin.inc - Menu callback. Provides checkboxes for a user's activity feed.
File
- ./
activity.module, line 939 - Primarily Drupal hooks and global API functions to manipulate activity.
Code
function activity_module_name($hook) {
// Do not static cache, activity_get_module_info() does that.
$all_modules = activity_get_module_info();
foreach ($all_modules as $module => $info) {
if (isset($info->hooks[$hook])) {
return $module;
}
}
return FALSE;
}