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

shop:onExtendOrderPreviewTabs event

Triggered by /modules/shop/controllers/shop_orders/preview.htm
Author LemonStand eCommerce Inc.

Event handler signature

public array event_onExtendOrderPreviewTabs(Shop_Orders $controller, Shop_Order $order)
$controller Shop_Orders specifies the controller object.
$order Shop_Order specifies the order object.
{return} array returns an array of tab names and tab partial paths.
Allows to display custom tabs on the Order Preview page in the Administration Area. The event handler should accept two parameters - the controller object and the order object. The handler should return an associative array of tab titles and corresponding tab partials.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendOrderPreviewTabs', $this, 'extend_order_tabs');
}

public function extend_order_tabs($controller, $order)
{
  return array(
    'My tab caption' => 'modules/my_module/partials/_my_partial.htm',
    'Second custom tab' => 'modules/my_module/partials/_another_partial.htm'
  );
}