Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Created May 21, 2013 18:20
Show Gist options
  • Save xcommerce-gists/5622034 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/5622034 to your computer and use it in GitHub Desktop.
dispatchEvent method: Magento observer for extensibility alpha-a
class Mage_Customer_Model_Customer_Webhook_Observer
{
public function dispatchCustomerDeletedEvent($observer)
{
$customer = $observer->getEvent()->getCustomer();
try {
Mage::helper('Mage_Webhook_Helper_Data')->dispatchEvent('customer/deleted', array('customer' => $customer));
} catch (Exception $e) {
Mage::logException($e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment