Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php class Third_Party_Model_Columncount
  2. {
  3. public function toOptionArray()
  4. {
  5. return array(
  6. array('value'=>'3', 'label'=>Mage::helper('ThemeConfig')->__('3 Column Grid')),
  7. array('value'=>'4', 'label'=>Mage::helper('ThemeConfig')->__('4 Column Grid')),
  8. array('value'=>'5', 'label'=>Mage::helper('ThemeConfig')->__('5 Column Grid'))
  9. );
  10. }
  11. ?>
  12.  
  13. <config>
  14. <modules>
  15. <My_Module>
  16. <active>true</active>
  17. <codePool>local</codePool>
  18. <depends><Third_Party/></depends>
  19. </My_Module>
  20. </modules>
  21. </config>
  22.  
  23. <config>
  24. <modules>
  25. <My_Module>
  26. <version>0.1.0</version>
  27. </My_Module>
  28. </modules>
  29. <global>
  30. <models>
  31. <module>
  32. <class>My_Module_Model</class>
  33. <module>
  34. <party>
  35. <rewrite>
  36. <columncount>My_Module_Model_Columncount</columncount>
  37. </rewrite>
  38. </party>
  39. </models>
  40. </global>
  41. </config>
  42.  
  43. <?php class My_Module_Model_Columncount extends Third_Party_Model_Columncount
  44. {
  45. public function toOptionArray()
  46. {
  47. return array(
  48. array('value'=>'3', 'label'=>Mage::helper('ThemeConfig')->__('3 Column Grid')),
  49. array('value'=>'4', 'label'=>Mage::helper('ThemeConfig')->__('4 Column Grid')),
  50. array('value'=>'5', 'label'=>Mage::helper('ThemeConfig')->__('5 Column Grid')),
  51. array('value'=>'6', 'label'=>Mage::helper('ThemeConfig')->__('6 Column Grid'));
  52. }
  53.  
  54. }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement