Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class EM_Galabrandstoresettings_Model_System_Config_Source_Attribute
- {
- /**
- * Options getter
- *
- * @return array
- */
- public function toOptionArray()
- {
- $attributes = Mage::getSingleton('catalogsearch/advanced')->getAttributes();
- $result = array();
- foreach($attributes as $attribute){
- $result[] = array(
- 'value' => $attribute->getAttributeCode(),
- 'label' => $attribute->getStoreLabel()
- );
- }
- return $result;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement