Advertisement
Guest User

Untitled

a guest
Apr 17th, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. class EM_Galabrandstoresettings_Model_System_Config_Source_Attribute
  3. {
  4.  
  5.     public function toOptionArray()
  6.     {
  7.         $attributes = Mage::getSingleton('catalogsearch/advanced')->getAttributes();
  8.         $result = array();
  9.         foreach($attributes as $attribute){
  10.             $result[] = array(
  11.                 'value' =>  $attribute->getAttributeCode(),
  12.                 'label' =>  $attribute->getStoreLabel()
  13.             );
  14.         }
  15.         return $result;
  16.     }
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement