diff --git a/includes/module.inc b/includes/module.inc
index 779b668..bd60598 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -786,10 +786,8 @@ function module_implements_write_cache() {
  * @return
  *   The return value of the hook implementation.
  */
-function module_invoke() {
+function module_invoke($module, $hook) {
   $args = func_get_args();
-  $module = $args[0];
-  $hook = $args[1];
   unset($args[0], $args[1]);
   if (module_hook($module, $hook)) {
     return call_user_func_array($module . '_' . $hook, $args);
