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

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

Event handler signature

public array event_onExtendCustomerPreviewTabs(Backend_Controller $controller, Shop_Customer $customer)
$controller Backend_Controller specifies the controller object.
$customer Shop_Customer specifies a customer object.
{return} array returns an array of tab names and tab partial paths.
Allows to add tabs to the Preview Customer page in the Administration Area. The event handler should accept two parameters - the controller object and the customer object. The handler should return an associative array of tab titles and corresponding tab partials.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendCustomerPreviewTabs', $this, 'add_customer_preview_tabs');
}

public function add_customer_preview_tabs($controller, $customer)
{
  return array('Special information'=>PATH_APP.'/mymodule/partials/special.htm');
}