function module_builder_get_hook_data_flat in Module Builder 7
Same name and namespace in other branches
- 6.2 includes/process.inc \module_builder_get_hook_data_flat()
Helper for API functions that don't care about file grouping.
1 call to module_builder_get_hook_data_flat()
- module_builder_get_hook_names in includes/
process.inc - Get just hook names.
File
- includes/
process.inc, line 79 - Module builder code processing code.
Code
function module_builder_get_hook_data_flat($dir = NULL) {
$data = module_builder_get_hook_data($dir);
foreach ($data as $group => $hooks) {
foreach ($hooks as $key => $hook) {
$return[$hook['name']] = $hook;
}
}
return $return;
}