1, 'data_type' => ['IS NOT NULL' => 1], 'options' => ['limit' => 0], ]); if ($optionGroups['count'] > 0) { foreach ($optionGroups['values'] as $optionGroup) { $values = CRM_Core_BAO_OptionValue::getOptionValuesArray($optionGroup['id']); if (count($values) > 0) { foreach ($values as $value) { try { CRM_Utils_Type::validate($value['value'], $optionGroup['data_type'], FALSE, '', TRUE); } catch (Exception $e) { $problemValues[] = [ 'group_name' => $optionGroup['title'], 'value_name' => $value['label'], ]; } } } } } if (!empty($problemValues)) { $strings = ''; foreach ($problemValues as $problemValue) { $strings .= ts('
Option Group | Option Value | ') . $strings . ts('
---|