1. <?php
  2. class EM_Galabrandstoresettings_Model_System_Config_Source_Attribute
  3. {
  4. /**
  5. * Options getter
  6. *
  7. * @return array
  8. */
  9. public function toOptionArray()
  10. {
  11. $attributes = Mage::getSingleton('catalogsearch/advanced')->getAttributes();
  12. $result = array();
  13. foreach($attributes as $attribute){
  14. $result[] = array(
  15. 'value' => $attribute->getAttributeCode(),
  16. 'label' => $attribute->getStoreLabel()
  17. );
  18. }
  19. return $result;
  20. }
  21. }
  22. ?>