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

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

Event handler signature

public void event_onExtendCustomersToolbar(Backend_Controller $controller)
$controller Backend_Controller specifies the controller object. Use this object to render custom partials.
Allows to add new buttons to the toolbar above the customer list in the Administration Area. The event handler accepts a single parameter - the controller object, which you can use for rendering a partial containing new buttons. Event handler example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendCustomersToolbar', $this, 'extend_customers_toolbar');
}

public function extend_orders_toolbar($controller)
{
  $controller->renderPartial(PATH_APP.'/modules/mymodule/partials/_customers_toolbar.htm');
}

// Example of the _orders_toolbar.htm partial

<div class="separator">&nbsp;</div>
<?= backend_ctr_button('My button', 'my_button_css_class', url('mymodule/manage/')) ?>