This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

backend:onBeforeRenderLayout event

Triggered by Backend_Controller
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onBeforeRenderLayout(Backend_Controller $controller, string $name)
$controller Backend_Controller specifies the Administration Area controller object.
$name string specifies a name of the layout document.
Triggered before an Administration Area layout is rendered. In the event handler you can update controller's properties.
public function subscribeEvents()
{
  Backend::$events->addEvent('backend:onBeforeRenderLayout', $this, 'backend_render_layout');
}

public function backend_render_layout($controller, $name)
{
  // Do something
}