Browse files

Use mass activation status constants instead of hardcoded values

  • Loading branch information...
1 parent 8087507 commit 472eb72a974e0f769edac4499c7fdec49a4b2e9e @Vinai committed Jul 16, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 app/code/community/Netzarbeiter/CustomerActivation/Model/Observer.php
View
9 app/code/community/Netzarbeiter/CustomerActivation/Model/Observer.php
@@ -249,6 +249,10 @@ public function adminhtmlBlockHtmlBefore(Varien_Event_Observer $observer)
/** @var $helper Netzarbeiter_CustomerActivation_Helper_Data */
$helper = Mage::helper('customeractivation');
+ $noEmail = Netzarbeiter_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITHOUT_EMAIL;
+ $withEmail = Netzarbeiter_CustomerActivation_Helper_Data::STATUS_ACTIVATE_WITH_EMAIL;
+ $deactivate = Netzarbeiter_CustomerActivation_Helper_Data::STATUS_DEACTIVATE;
+
$massBlock->addItem(
'customer_activated',
array(
@@ -261,8 +265,9 @@ public function adminhtmlBlockHtmlBefore(Varien_Event_Observer $observer)
'class' => 'required-entry',
'label' => $helper->__('Customer Activated'),
'values' => array(
- '1' => $helper->__('Yes'),
- '0' => $helper->__('No')
+ $noEmail => $helper->__('Yes (No Notification)'),
+ $withEmail => $helper->__('Yes (With Notification)'),
+ $deactivate => $helper->__('No')
)
)
)

0 comments on commit 472eb72

Please sign in to comment.