protected function _fetchValuesFor($config) { $text = array(); if (isset($config['values'])) { foreach ($config['values'] as $key => $value) { if ($key == 'block_id' || $key == 'cms_block' || $config['@']['type'] == 'cms/widget_block' && $key == 'id') { $text[] = $this->_getCmsBlockName($value); } else { if ($key == 'page_id' || $config['@']['type'] == 'cms/widget_page_link' && $key == 'id') { $text[] = $this->_getCmsPageTitle($value); } else { if ($key == 'sku') { $text[] = $this->_getNameFromAttribute($key, $value); } else { if ($key == 'id_path' || $key == 'path') { $text[] = $this->_getNameFromIdPath($value); } else { if ($key == 'title') { $text[] = $value; } } } } } } $transport = new Varien_Object(array('image_text' => $text)); Mage::dispatchEvent('swiftotter_widget_collect_wysiwyg_widget_image', array('transport' => $transport)); $text = $transport->getImageText(); } return $text; }