use_plugin($plugin_name);
if (function_exists($function)) {
$ret = $function($args, $ret);
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
}
}
}
if (!empty($plugin_ret)) {
$ret = sqm_array_merge($ret, $plugin_ret);
}
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
}
}
}
} else {
$nay++;
}
+
+ // each plugin can call additional hooks, so need
+ // to make sure the current hook name is accurate
+ // again after each plugin has finished
+ //
+ $currentHookName = $name;
}
}
$currentHookName = '';