Magento 1.9 – How to create attribute values programatically
$arg_attribute = 'plusstocklocation'; // Attribute code, can be color, brands, manufacturer or your custom attribute.
        $arg_value = 'Red'; // New value name

        $attr_model = Mage::getModel('catalog/resource_eav_attribute');
        $attr = $attr_model->loadByCode('catalog_product', $arg_attribute);
        $attr_id = $attr->getAttributeId();

        $option['attribute_id'] = $attr_id;
        $option['value']['any_option_name'][0] = $arg_value;

        $setup = new Mage_Eav_Model_Entity_Setup('core_setup');
        $setup->addAttributeOption($option);

 


Lukas
Lukas Stranovsky
I am the guy who made this. Sorry for typos.