Triggered before an Administration Area AJAX request is handled.
In the event handler you can throw an exception to cancel the default
event processing. Example:
public function subscribeEvents()
{
Backend::$events->addEvent('backend:onBeforeRemoteEvent', $this, 'handle_remote_event');
}
public function handle_remote_event($controller, $event)
{
if ($controller instanceof Cms_Themes && $event == 'enable_onApply')
throw new Phpr_ApplicationException('We\'re sorry, you manage CMS themes .');
}