sreichel/magento-StackExchange_LockAttributes

View on GitHub
src/app/code/community/StackExchange/LockAttributes/etc/system.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" ?>
<config>
    <sections>
        <catalog>
            <groups>
                <backend translate="label" module="stackexchange_lockattributes">
                    <label>Attribute Settings</label>
                    <sort_order>9999</sort_order>
                    <show_in_default>1</show_in_default>
                    <show_in_website>1</show_in_website>
                    <show_in_store>1</show_in_store>
                    <fields>
                        <lock_attributes translate="label tooltip comment" module="stackexchange_lockattributes">
                            <label>Locked Attributes</label>
                            <frontend_type>multiselect</frontend_type>
                            <source_model>stackexchange_lockattributes/system_config_source_product_attributes_all</source_model>
                            <sort_order>10</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>1</show_in_website>
                            <show_in_store>1</show_in_store>
                            <comment><![CDATA[Product attributes that can't be edited.]]></comment>
                            <can_be_empty>1</can_be_empty>
                        </lock_attributes>
                    </fields>
                </backend>
            </groups>
        </catalog>
    </sections>
</config>