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

cms:onExtendPageContentToolbar event

Triggered by /modules/cms/controllers/cms_pages/_pages_control_pabel.htm
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendPageContentToolbar(Backend_Controller $controller, Cms_Page $page)
$controller Backend_Controller the back-end controller object.
$page Cms_Page specifies the CMS page object.
Allows to add new buttons to the toolbar above the Edit Content form (CMS/Pages/Edit page content) in the Administration Area. The event handler should accept two parameters - the back-end controller object and the page object. Use the controller's renderPartial() method to render new toolbar elements.
public function subscribeEvents()
{
  Backend::$events->addEvent('cms:onExtendPageContentToolbar', $this, 'extend_toolbar');
}

public function extend_toolbar($controller, $page)
{
  $controller->renderPartial(PATH_APP.'/modules/cmsext/partials/_toolbar.htm', array('page'=>$page));
}

// Example of the _toolbar.htm partial

<div class="separator">&nbsp;</div>
<?= backend_button('Some button', array('href'=>'#')) ?>
<?= backend_ajax_button('AJAX button', 'onSomeHandler') ?>