Actions

BeforeSurveyBarRender

From LimeSurvey Manual

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
  This feature is not yet released.


When

This event is fired before the survey bar is rendered.


Input

The event receives the following information:

Name Type Description
surveyId integer The id of the current survey


Possible output

The following information can be set in the event:

Name Type Description
menus Menu[] Array of Menu objects


Example

public function beforeSurveyBarRender()
{
    $event = $this->getEvent();
    $surveyId = $event->get('surveyId');

    $menu = new Menu(array(
        'label' => $this->gT('MyPlugin'),
        'iconClass' => 'fa fa-some-icon',
        'href' => $href
    ));

    $event->append('menus', array($menu));
}