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

core:onBeforeFormRecordDelete event

Triggered by Db_FormBehavior
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onBeforeFormRecordDelete(Backend_Controller $controller, Db_ActiveRecord $record)
$controller Backend_Controller specifies the Administration Area controller object.
$record Db_ActiveRecord specifies the model object the form is going to be rendered for.
Triggered before an existing model is deleted from the database. The event is triggered only when a record is deleted with an Administration Area form. The event handler can throw an exception to cancel the record deletion.