Un(lock) an existing Field for edit with Devel module
Get raw version
- # You can use Devel-Module to unlock/lock a exising field where you would otherwise get an error like "The field xxxx is locked and cannot be edited."
- # Change the 'xxx' on line 1 with the machine readable name of your field.
- $field_name = 'xxx';
- $field = field_read_field($field_name);
- $field['locked'] = 1;