Created
September 9, 2016 13:07
-
-
Save batigolix/f83f281b614d7bd3abb55c7ab524e57c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$field_name = 'field_name'; | |
$field = field_read_field($field_name); | |
$field['locked'] = 0; // 0: unlock; 1: lock. | |
field_update_field($field); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment