You are here

function field_test_field_sanitize in SimpleTest 7

Implement hook_field_sanitize().

File

tests/field_test.module, line 441

Code

function field_test_field_sanitize($obj_type, $object, $field, $instance, $langcode, &$items) {
  foreach ($items as $delta => $item) {
    $value = check_plain($item['value']);
    $items[$delta]['safe'] = $value;
  }
}