Created
May 21, 2013 18:20
-
-
Save xcommerce-gists/5622034 to your computer and use it in GitHub Desktop.
dispatchEvent method: Magento observer for extensibility alpha-a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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