public function Base_Render_Before($Sender) {
      $Session = Gdn::Session();
      if ($Sender->Menu)
         $Sender->Menu->AddLink('Discussions', T('Discussions'), '/discussions', FALSE, array('Standard' => TRUE));
   }
public function Base_Render_Before($Sender) {
      $Session = Gdn::Session();
      if ($Sender->Menu)
         $Sender->Menu->AddLink('Discussions', T('Discussions'), '/discussions', FALSE, array('Standard' => TRUE));
   }
public function Base_Render_Before ( $ Sender ) { $ Session = Gdn :: Session ( ) ; if ( $ Sender -> Menu ) $ Sender -> Menu -> AddLink ( 'Discussions' , T ( 'Discussions' ) , '/discussions' , FALSE , array ( 'Standard' => TRUE ) ) ; }
Adds 'Discussion' item to menu.

'Base_Render_Before' will trigger before every pageload across apps.
If you abuse this hook, Tim with throw a Coke can at your head.

@since 2.0.0
@package Vanilla

@param object $Sender DashboardController.
Adds Discussion item to menu .