function module_builder_get_hook_declarations in Module Builder 7
Same name and namespace in other branches
- 6.2 includes/process.inc \module_builder_get_hook_declarations()
Get stored hook declarations, keyed by hook name, with destination.
Return value
An array of the form: [hook_action_info] => 'declaration' => function hook_action_info() 'destination' => function hook_action_info()
1 call to module_builder_get_hook_declarations()
- module_builder_get_templates in includes/
generate.inc - Helper function for module_builder_generate_module
File
- includes/
process.inc, line 19 - Module builder code processing code.
Code
function module_builder_get_hook_declarations($dir = NULL) {
$data = module_builder_get_hook_data($dir);
foreach ($data as $group => $hooks) {
foreach ($hooks as $key => $hook) {
$return[$hook['name']] = array(
'declaration' => $hook['definition'],
'destination' => $hook['destination'],
);
}
}
return $return;
}