Skip to content

Instantly share code, notes, and snippets.

@crazyrohila
Created August 12, 2016 11:06
Show Gist options
  • Save crazyrohila/6075f8a540ab65790d63cbc4dae5da00 to your computer and use it in GitHub Desktop.
Save crazyrohila/6075f8a540ab65790d63cbc4dae5da00 to your computer and use it in GitHub Desktop.
Update drupal field instance
<?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