function module_builder_get_hook_declarations_plain in Module Builder 7
Same name and namespace in other branches
- 6.2 includes/process.inc \module_builder_get_hook_declarations_plain()
Get just hook declarations, keyed by hook name.
Return value
An array of the form: [hook_action_info] => function hook_action_info()
File
- includes/
process.inc, line 41 - Module builder code processing code.
Code
function module_builder_get_hook_declarations_plain($dir = NULL) {
$data = module_builder_get_hook_data($dir);
foreach ($data as $group => $hooks) {
foreach ($hooks as $key => $hook) {
$return[$hook['name']] = $hook['definition'];
}
}
return $return;
}