mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 11:49:56 +03:00
- 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
This commit is contained in:
parent
5cce84ff1c
commit
2b3bc579e4
10 changed files with 310 additions and 27 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue