[Bb-trac] Re: [bbPress] #623: Need a hook to extend the admin menu

bbPress bb-trac at lists.bbpress.org
Sun Mar 25 18:15:07 GMT 2007


#623: Need a hook to extend the admin menu
-------------------------+--------------------------------------------------
 Reporter:  Null         |        Owner:         
     Type:  enhancement  |       Status:  closed 
 Priority:  normal       |    Milestone:  1.0    
Component:  integration  |      Version:  0.8.1  
 Severity:  normal       |   Resolution:  invalid
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by sambauers):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Just use the globals...

 {{{
 $bb_menu[20] = array(__('Some Plugin'), 'use_keys', 'some_plugin');
 $bb_submenu['some_plugin'][5] = array(__('Whatever'), 'use_keys',
 'some_plugin');
 $bb_submenu['some_plugin'][10] = array(__('Yada Yada'), 'use_keys',
 'some_plugin_yadayada');
 }}}

 This should give you a new main item called "Some Plugin" with two
 children, the default "Whatever" and another page "Yada Yada"

-- 
Ticket URL: <http://trac.bbpress.org/ticket/623#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list