public function validateFieldSettings(SuperTable_SettingsModel $settings) { $validates = true; $this->_uniqueBlockTypeAndFieldHandles = array(); $uniqueAttributes = array('name', 'handle'); $uniqueAttributeValues = array(); foreach ($settings->getBlockTypes() as $blockType) { if (!$this->validateBlockType($blockType, false)) { // Don't break out of the loop because we still want to get validation errors for the remaining block // types. $validates = false; } } return $validates; }
public function validateFieldSettings(SuperTable_SettingsModel $settings) { $validates = true; foreach ($settings->getBlockTypes() as $btIndex => $blockType) { if (!$this->validateBlockType($blockType, false)) { // Don't break out of the loop because we still want to get validation errors for the remaining block // types. $validates = false; } if ($blockType->hasFieldErrors) { $settings->addErrors($blockType->getErrors()); } } return $validates; }