diff options
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions_plugins.inc.php | 15 |
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 |