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:onBeforeRenderPartial event

Triggered by Backend_Controller
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onBeforeRenderPartial(Backend_Controller $controller, string $view, array $params)
$controller Backend_Controller specifies the Administration Area controller object.
$view string specifies a name of the partial's view document.
$params array specifies the partial parameters array.
Triggered before an Administration Area partial is rendered. In the event handler you can update controller's properties and alter any data passed to the partial.
public function subscribeEvents()
{
  Backend::$events->addEvent('backend:onBeforeRenderPartial', $this, 'backend_render_partial');
}

public function backend_render_partial($controller, $view, $params)
{
  if ($view == 'order_customer_notifications')
  {
    foreach ($controller->viewData['form_model']->customer_notifications as $record)
      $record->email = 'xxx@xxxxxxxxx.xxx';
  }
}