How to create a hook Drupal7?

You use helper functions such as module_invoke_all(), module_invoke(), drupal_alter() to invoke all functions matching the expected name pattern. 

These invoked functions are usually found with module_implements()

the best practices to document them in module.api.php by creating empty stubs hook_name function.

Tags