- 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:
rvelices 2006-10-27 00:25:02 +00:00
parent 5cce84ff1c
commit 2b3bc579e4
10 changed files with 310 additions and 27 deletions

View file

@ -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
);
}
?>