projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed typo (Bug #405483)
[squirrelmail.git]
/
functions
/
plugin.php
diff --git
a/functions/plugin.php
b/functions/plugin.php
index 4b86b769824c00d8d8f76abce5745e87025edab4..46cc9eef46ac37bad10da5b87cbfe88eb0c2d4b0 100644
(file)
--- a/
functions/plugin.php
+++ b/
functions/plugin.php
@@
-18,6
+18,8
@@
$plugin_php = true;
$plugin_general_debug = false;
$plugin_php = true;
$plugin_general_debug = false;
+
+ $squirrelmail_plugin_hooks = array();
// This function adds a plugin
function use_plugin ($name) {
// This function adds a plugin
function use_plugin ($name) {
@@
-32,7
+34,7
@@
{
if ($plugin_general_debug)
echo "plugin: ---- Executing $function to init plugin<br>\n";
{
if ($plugin_general_debug)
echo "plugin: ---- Executing $function to init plugin<br>\n";
- $function();
+ $function(
$plugin_general_debug
);
}
elseif ($plugin_general_debug)
echo "plugin: -- Init function $function doesn't exist.<br>\n";
}
elseif ($plugin_general_debug)
echo "plugin: -- Init function $function doesn't exist.<br>\n";
@@
-69,4
+71,16
@@
use_plugin($name);
}
use_plugin($name);
}
+ if ($plugin_general_debug)
+ {
+ echo "plugin: Hook list<br>\n";
+ foreach ($squirrelmail_plugin_hooks as $Hook => $Plugins)
+ {
+ foreach ($Plugins as $Name => $Func)
+ {
+ echo "[$Hook][$Name] = $Func<br>\n";
+ }
+ }
+ }
+
?>
?>