public function toOptionArray()
 {
     if (is_null(self::$attributes)) {
         $this->loadAttributes();
     }
     $options = parent::toOptionArray();
     array_shift($options);
     return $options;
 }
 public function loadAttributes()
 {
     $config = Mage::getModel('eav/config');
     $attributes_codes = $config->getEntityAttributeCodes('catalog_product');
     self::$attributes = array();
     foreach ($attributes_codes as $attribute_code) {
         $attribute = $config->getAttribute('catalog_product', $attribute_code);
         if ($attribute !== false && $attribute->getAttributeId() > 0) {
             self::$attributes[$attribute->getAttributeCode()] = array('is_configurable' => $attribute->getIsConfigurable() && $attribute->getFrontendInput() == 'select' && (class_exists("Mage_Catalog_Model_Resource_Eav_Attribute") && constant("Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL") !== null && $attribute->getIsGlobal() == Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL) && ($attribute->getBackendType() == 'int' ? true : false) && (strpos($attribute->getBackendModel(), 'boolean') === false && strpos($attribute->getSourceModel(), 'boolean') === false), 'value' => $attribute->getFrontend()->getLabel() . ' (' . $attribute->getAttributeCode() . ')');
         }
     }
 }