function field_test_field_update_forbid in SimpleTest 7
Implement hook_field_update_forbid().
File
- tests/
field_test.module, line 379
Code
function field_test_field_update_forbid($field, $prior_field, $has_data) {
if ($field['type'] == 'test_field' && $field['settings']['unchangeable'] != $prior_field['settings']['unchangeable']) {
throw new FieldException("field_test 'unchangeable' setting cannot be changed'");
}
}