getStores(); $config = Mage::getSingleton('googlebasefeedgenerator/config'); foreach ($Stores as $Store) { $cfg_map_product_columns = $config->getConfigVar('map_product_columns', $Store->getStoreId(), 'columns'); if (is_array($cfg_map_product_columns)) foreach ($cfg_map_product_columns as $arr) { if (isset($arr['column']) && !isset(self::$columns[$arr['column']])) { self::$columns[$arr['column']] = $arr['column']; } } } asort(self::$columns); } $options = array(array('value' => '', 'label' => '')); foreach (self::$columns as $k => $v) $options[] = array('value' => $k, 'label' => $v); return $options; } }