Changeset 1580 for trunk/admin/include


Ignore:
Timestamp:
Oct 27, 2006, 2:25:02 AM (18 years ago)
Author:
rvelices
Message:
  • 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_plugins.inc.php

    r1578 r1580  
    9999  return false;
    100100}
     101
     102/*allows plugins to add their content to the administration page*/
     103function add_plugin_admin_menu($title, $func)
     104{
     105  global $page;
     106
     107  $uid = md5( var_export($func, true) );
     108  $page['plugin_admin_menu'][] =
     109    array(
     110      'title' => $title,
     111      'function' => $func,
     112      'uid' => $uid
     113    );
     114}
     115
    101116?>
Note: See TracChangeset for help on using the changeset viewer.