1, 'data_type' => array('IS NOT NULL' => 1), 'options' => array('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) { $validate = CRM_Utils_Type::validate($value['value'], $optionGroup['data_type'], FALSE); if (is_null($validate)) { $problemValues[] = array( 'group_name' => $optionGroup['title'], 'value_name' => $value['label'], ); } } } } } if (!empty($problemValues)) { $strings = ''; foreach ($problemValues as $problemValue) { $strings .= ts('
Option Group | Option Value | ') . $strings . ts('
---|