aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_plugins.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-10-27 00:25:02 +0000
committerrvelices <rv-github@modusoptimus.com>2006-10-27 00:25:02 +0000
commit2b3bc579e4dcd4bf64c712eeca86f05e2d70fbf0 (patch)
tree56ac5c2009ab5fc7bb804e0c6f81edf1242472a8 /admin/include/functions_plugins.inc.php
parent5cce84ff1c62812e25f6252877ae46b1d3381b62 (diff)
- plugins can add now their page to the admin page
- new plugin (event_tracer) that demonstrate it and useful to see all calls to trigger_event git-svn-id: http://piwigo.org/svn/trunk@1580 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_plugins.inc.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/include/functions_plugins.inc.php b/admin/include/functions_plugins.inc.php
index bb85e15f6..91266841b 100644
--- a/admin/include/functions_plugins.inc.php
+++ b/admin/include/functions_plugins.inc.php
@@ -98,4 +98,19 @@ UPDATE '.CONFIG_TABLE.'
}
return false;
}
+
+/*allows plugins to add their content to the administration page*/
+function add_plugin_admin_menu($title, $func)
+{
+ global $page;
+
+ $uid = md5( var_export($func, true) );
+ $page['plugin_admin_menu'][] =
+ array(
+ 'title' => $title,
+ 'function' => $func,
+ 'uid' => $uid
+ );
+}
+
?> \ No newline at end of file