ShopConfig::updateCMSFields PHP Method

updateCMSFields() public method

public updateCMSFields ( FieldList $fields )
$fields FieldList
    public function updateCMSFields(FieldList $fields)
    {
        $fields->insertBefore($shoptab = Tab::create('Shop', 'Shop'), 'Access');
        $fields->addFieldsToTab("Root.Shop", TabSet::create("ShopTabs", $maintab = Tab::create("Main", TreeDropdownField::create('TermsPageID', _t("ShopConfig.TermsPage", 'Terms and Conditions Page'), 'SiteTree'), TreeDropdownField::create("CustomerGroupID", _t("ShopConfig.CustomerGroup", "Group to add new customers to"), "Group"), UploadField::create('DefaultProductImage', _t('ShopConfig.DefaultImage', 'Default Product Image'))), $countriestab = Tab::create("Countries", CheckboxSetField::create('AllowedCountries', _t('ShopConfig.AllowedCountries', 'Allowed Ordering and Shipping Countries'), self::config()->iso_3166_country_codes))));
        $fields->removeByName("CreateTopLevelGroups");
        $countriestab->setTitle(_t('ShopConfig.AllowedCountriesTabTitle', "Allowed Countries"));
    }