You are here

function module_builder_add_hook in Module Builder 6

1 call to module_builder_add_hook()
module_builder_node_export in ./module_builder.components.inc

File

./module_builder.api.inc, line 162
API functions for the module_builder module

Code

function module_builder_add_hook($hook, $module) {
  include_once './' . drupal_get_path('module', 'module_builder') . '/hooks/' . $hook . '.hook';
  return str_replace('{{{hook}}}', $module->machine, $hook);
}