Created
August 12, 2016 11:06
-
-
Save crazyrohila/6075f8a540ab65790d63cbc4dae5da00 to your computer and use it in GitHub Desktop.
Update drupal field instance
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
<?php | |
$field = field_read_instance('node', 'field_xxx', '<content_type>'); | |
$field['label'] = 'New Label'; | |
field_update_instance($field); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment