There may arise situations when you would want to display the contents of a block inside a template file or along with any other output variables. module_invoke() function can be used for this purpose.
The module_invoke() is a function to invoke a hook in Drupal. The syntax for module_invoke is different for Drupal 6 and Drupal 7.