module_invoke() invokes a hook, defined in a module. It mainly takes two arguments as follows:
module_invoke

  • $module: Name of the module whose hook should be invoked.
  • $hook: The hook to be invoked from the defined module

More arguments can be provided which will be passed to the hook being invoked.

module_invoke.