Skip to content

Instantly share code, notes, and snippets.

@batigolix
Created September 9, 2016 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batigolix/f83f281b614d7bd3abb55c7ab524e57c to your computer and use it in GitHub Desktop.
Save batigolix/f83f281b614d7bd3abb55c7ab524e57c to your computer and use it in GitHub Desktop.
$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